![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
A minor mistake in the previous mail, please take this into consideration and neglect the previous mail : html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" head script src="http://code.jquery.com/jquery-latest.pack.js" type="text/javascript" language="javascript" charset="utf-8"></script script type="text/javascript" //<![CDATA[ $().ready(function(){ $('#clicy').click(function(){ var id = "word" + $('input[type!=hidden]').length; var hid = "hw" + $('input[type=hidden]').length; $('input[type=submit]').before('<br/><input type="hidden" name="'+hid+'" id="'+hid+'" value="&&"/><label for="'+id+'">&&</label><input type="text" name="'+id + '" id="'+id + '" value="" size="30" /><br/>'); return false; }); $('#clico').click(function(){ var id = "word" + $('input[type!=hidden]').length; var hid = "hw" + $('input[type=hidden]').length; $('input[type=submit]').before('<br/><input type="hidden" name="'+hid+'" id="'+hid+'" value="||"/><label for="'+id+'">||</label><input type="text" name="'+id + '" id="'+id + '" value="" size="30" /><br/>'); return false; }); }); //]] /script /head body form action="search/DoSearch" method="post" label for="word">Texto:</label input type="text" name="word" id="word" value="" size="50" / div><input type="submit" value="Buscar !!!" /></div /form a href="" id="clicy">Adicionar criterio de búsqueda (&&)</a> | <a href="" id="clico">Adicionar criterio de búsqueda (||)</a /body /html Thanks & Regards, Dhruva Sagar. Stephen Leacock<http://www.brainyquote.com/quotes/authors/s/stephen_leacock.html - "I detest life-insurance agents: they always argue that I shall some day die, which is not so." On Wed, Nov 4, 2009 at 8:46 AM, Dhruva Sagar <dhruva.sagar (AT) gmail (DOT) com> wrote: |
#12
| |||
| |||
|
|
Dhruva Sagar wrote: A minor mistake in the previous mail, please take this into consideration and neglect the previous mail : html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" head script src="http://code.jquery.com/jquery-latest.pack.js" type="text/javascript" language="javascript" charset="utf-8"></script script type="text/javascript" //<![CDATA[ $().ready(function(){ $('#clicy').click(function(){ var id = "word" + $('input[type!=hidden]').length; var hid = "hw" + $('input[type=hidden]').length; $('input[type=submit]').before('<br/><input type="hidden" name="'+hid+'" id="'+hid+'" value="&&"/><label for="'+id+'">&&</label><input type="text" name="'+id + '" id="'+id + '" value="" size="30" /><br/>'); return false; }); $('#clico').click(function(){ var id = "word" + $('input[type!=hidden]').length; var hid = "hw" + $('input[type=hidden]').length; $('input[type=submit]').before('<br/><input type="hidden" name="'+hid+'" id="'+hid+'" value="||"/><label for="'+id+'">||</label><input type="text" name="'+id + '" id="'+id + '" value="" size="30" /><br/>'); return false; }); }); //]] /script /head body form action="search/DoSearch" method="post" label for="word">Texto:</label input type="text" name="word" id="word" value="" size="50" / div><input type="submit" value="Buscar !!!" /></div /form a href="" id="clicy">Adicionar criterio de búsqueda (&&)</a> | <a href="" id="clico">Adicionar criterio de búsqueda (||)</a /body /html Thanks & Regards, Dhruva Sagar. Stephen Leacock http://www.brainyquote.com/quotes/authors/s/stephen_leacock.html - "I detest life-insurance agents: they always argue that I shall some day die, which is not so." On Wed, Nov 4, 2009 at 8:46 AM, Dhruva Sagar <dhruva.sagar (AT) gmail (DOT) com wrote: Thanks a lot, I made some improvements to your code because I'm using a table now but it works perfectly. -- Saludos ReynierPM |
#13
| |||
| |||
|
Great ![]() |
#14
| |||
| |||
|
|
Dhruva Sagar wrote: Great ![]() Hi again Dhruva: I have one more question regarding this topic. How I can delete all the newest elements created using the previous jQuery functions? Exists one method for all or I need to build a custom function and clic as many times as new elements I added? Cheers -- Saludos ReynierPM |
#15
| |||
| |||
|
|
Dhruva Sagar wrote: Great ![]() Hi again Dhruva: I have one more question regarding this topic. How I can delete all the newest elements created using the previous jQuery functions? Exists one method for all or I need to build a custom function and clic as many times as new elements I added? Cheers -- Saludos ReynierPM |
![]() |
| Thread Tools | |
| Display Modes | |
| |