[jQuery] Re: How to bind to multiple elements

2008-04-27 Thread Michael Geary
You can't have multiple elements with the same ID. That's why it only works for the first one. Use classes instead. That should be a straightforward change for the most part, the one exception being the part where you grab the ID of the P element and assign that same ID to the new TEXTAREA. Not

[jQuery] Re: How to bind to multiple elements

2008-04-27 Thread steve_f
Do you have multiple divs with the same id of 'images'?. if so you need to start using class name selectors, then you can iterate all the divs with that clas name e.g $(.images).each On Apr 27, 11:25 am, LostCore [EMAIL PROTECTED] wrote: Hi! Well, i'll quickly describe my problem. In a

[jQuery] Re: How to bind to multiple elements

2008-04-27 Thread LostCore
Thanks for all the advices! It was a very newbie error :P Can i ask another little question? Starts with this code (a new version of what i posted early) $(.imagencap).bind(click, function(){ if($(this).children().is(textarea)){ return; }