Possible Duplicate:
Check if object is a jQuery object
I need something like:
function func(obj) {
if (!$.isJQ(obj)) {
obj = $(obj);
}
// ...
}
Is there any isJQ
function in jQuery?
Possible Duplicate:
Check if object is a jQuery object
I need something like:
function func(obj) {
if (!$.isJQ(obj)) {
obj = $(obj);
}
// ...
}
Is there any isJQ
function in jQuery?