I am trying to pass an object in a function, but it seems that $ (this) is not actually valid Has the issue of passing it.
$ ('textarea [name * = quote]'). Live ('bind', function () {}). Border ('10 ', $ (this) .Parents (' form '). Children (). (' Span [name * = qc] '));
The second parameter can be an object like either a string or $ ('span # qc'), but I also want to be able to pass in an object which is current References one.
Why? Because I have many forms on the same page, each has a text ## quote, so depending on which form is selected, I want to refer to any particular element within the same form.
Anyone ??
You must make a separate call for each individual instance using the .each
, such as : ($ '(' Textarea # quote ') Each (function () {$ (this) .live (' bind ', function () {}). Limit (' 10 ', $ (this) .Parents (' form '). Find Children (). (' Span # qc '));});
Comments
Post a Comment