Assume that there is an object, passed as an argument to a function. the argument name is "obj".
can it be concatenated as followed?
$(obj + " .className")......
OR
$(obj + "[name='obj_name'])......
Thanks.
concatenationcss-selectorsjqueryobjectstring
Assume that there is an object, passed as an argument to a function. the argument name is "obj".
can it be concatenated as followed?
$(obj + " .className")......
OR
$(obj + "[name='obj_name'])......
Thanks.
Best Answer
No, but you can use the
filter()
method to filter out the object itself:Or, if you want to find the children with those qualities:
Or, an alternative syntax to
find
, giving theobj
as the context to the$()
function: