[jQuery] Re: repeating a block of s

2008-05-14 Thread ryo
well, now it seems to be working simply by adding :last to the code updating the input text values, like that: --- if (ajaxdata) $(".ainput:last").val(ajaxdata[1]); $(".descr:last").val(ajaxdata[2]); $(".color:last").val(ajaxdata[3]); --- thanks for the...

[jQuery] Re: repeating a block of s

2008-05-14 Thread ryo
perfect, jorn. i used the LiveQuery plugin, and it works: http://www.monokraft.com/test/test.html the problem is that when i autocomplete the second article, the first block takes the same values than the second one, i think it's beacause the class names are the same. i tried to add an incrementi

[jQuery] Re: repeating a block of s

2008-05-13 Thread Jörn Zaefferer
Please take a look at this: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3F Think of "creating elements on the clientside" when "loading elements via ajax" or similar is mentioned. Jörn On Tue, May 13, 2008 at 2:14 PM, ryo <[EMAIL PROTECT

[jQuery] Re: repeating a block of s

2008-05-13 Thread ryo
thanks alot for your answer, jorn. you're right about the plugin not relying on IDs, anyway i can't figure out how to solve my problem. i tried generating the second block o input boxes this way: --- $("#add").click(function(){ var codex = "ART

[jQuery] Re: repeating a block of s

2008-05-09 Thread Jörn Zaefferer
The plugin doesn't rely on IDs. Please revisit your code without that assumption and post a testpage if you don't get any further. Jörn On Fri, May 9, 2008 at 11:00 AM, ryo <[EMAIL PROTECTED]> wrote: > > i have a page where i fill a form with personal data such as name, > surname, email... > i'm