jQuery - how to pass $(this) as an object?
- by regan
Hello!
I'm trying to pass an object into a function but think there's a problem with $(this) not actually being valid at the point of passing it in.
$('textarea#quote').live('bind',function(){
}).limit('10',$(this).parents('form').children().find('span#qc') );
The second parameter can be either a string or an object like $('span#qc'), but I also want to be able to pass in an object which references the current one.
Why? Because I have several forms on same page, each containing textarea#quote, so depending on which form is selected I want to be able to reference a particular element within the same form.
Anyone??