Re: [jQuery] Why this code don't work

2009-11-04 Thread Dhruva Sagar
Well I would suggest that you keep adding the generated id's of the inputs & hidden inputs in an array. Write a reset function which then loops through the array and selects them using $() and call remove() for them to remove them from the DOM. Other than that I don't think there is any way specif

Re: [jQuery] Why this code don't work

2009-11-04 Thread ReynierPM
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?

Re: [jQuery] Why this code don't work

2009-11-03 Thread Dhruva Sagar
Great :) Thanks & Regards, Dhruva Sagar. Marie von Ebner-Eschenbach - "Even a stopped clock is right twice a day." On Wed, Nov 4, 2009 at 9:09 AM, ReynierPM wrote: > Dhruva Sagar wrote: > >> A minor mistake in the pre

Re: [jQuery] Why this code don't work

2009-11-03 Thread ReynierPM
Dhruva Sagar wrote: A minor mistake in the previous mail, please take this into consideration and neglect the previous mail : http://www.w3.org/1999/xhtml"; xml:lang="en"> http://code.jquery.com/jquery-latest.pack.js"; type="text/javascript" language="javascript" charset="utf-8"> //

Re: [jQuery] Why this code don't work

2009-11-03 Thread Dhruva Sagar
A minor mistake in the previous mail, please take this into consideration and neglect the previous mail : http://www.w3.org/1999/xhtml"; xml:lang="en"> http://code.jquery.com/jquery-latest.pack.js"; type="text/javascript" language="javascript" charset="utf-8"> //

Re: [jQuery] Why this code don't work

2009-11-03 Thread Dhruva Sagar
Hi ReynierPM, * * *The following is the test.html i've written for you, i've tweaked it a bit to get the right id's & also to solve the 2 problems you listed.* *Try it and see if it does what you wish to do :* http://www.w3.org/1999/xhtml"; xml:lang="en"> http://code.jquery.com/jquery-latest.pack

Re: [jQuery] Why this code don't work

2009-11-03 Thread ReynierPM
Hi Dhruva: I'm trying to build a simple search form. Would be nice if the user can add her/his own fields for make the search better. What I mean? If you take only one input then the search will be limited to this only field containing one or more words. By the contrary if the user could add so

Re: [jQuery] Why this code don't work

2009-11-02 Thread ReynierPM
Dhruva Sagar wrote: Well I have made some changes to the test.html to achieve the desired results : http://code.jquery.com/jquery-latest.pack.js"; type="text/javascript" language="javascript" charset="utf-8"> //

Re: [jQuery] Why this code don't work

2009-11-02 Thread Dhruva Sagar
Well I have made some changes to the test.html to achieve the desired results : http://code.jquery.com/jquery-latest.pack.js"; type="text/javascript" language="javascript" charset="utf-8"> //

Re: [jQuery] Why this code don't work

2009-11-02 Thread ReynierPM
Dhruva Sagar wrote: Where have you added the $('#another').click() ? Is it even in $(document).ready() or not ? Are you sure that the click handler is even being called ? I have created a test.html and tested what you want, it works perfectly for me. http://code.jquery.com/jquery-l

Re: [jQuery] Why this code don't work

2009-11-02 Thread Dhruva Sagar
Where have you added the $('#another').click() ? Is it even in $(document).ready() or not ? Are you sure that the click handler is even being called ? I have created a test.html and tested what you want, it works perfectly for me. http://code.jquery.com/jquery-latest.pack.js"; ty

Re: [jQuery] Why this code don't work

2009-11-02 Thread ReynierPM
Dhruva Sagar wrote: You should be doing $('#word').after(''); This doesn't work too. I try and get none HTML input added after input#word. Why? -- Saludos ReynierPM

Re: [jQuery] Why this code don't work

2009-11-02 Thread Dhruva Sagar
You should be doing $('#word').after(''); append() would add your HTML code as a child of that input, hence you will not get the desired results. Thanks & Regards, Dhruva Sagar. Pablo Picasso - "Computers are useless. They can only

[jQuery] Why this code don't work

2009-11-02 Thread ReynierPM
Hi every: I need to add some fields when a user clic a link. For this purpose I build this piece of code: [jQuery/JS Code] $('#another').click(function(){ $('#word').append('name="word2" id="word2" value="" size="50" />'); }); [HTML Code] Texto: href="#" id="another">Adicionar criterio Bu