I have done a simple selector for example:
$('div').eq(0).selector;// returns "div.slice(0,1)"
$($('div').eq(0).selector);// would not work...
should the eq(0)
not had been there it would work as it wont have the slice but a proper usable selector.
My problem is that, I wonder that using .selector
, is not very helpful, and I have not tried other filters etc...
$('div').children().selector// returns "div.children()"
I am using jQuery 1.7.1, I really don't see what the use of this .selector
is for when it returns something that does not even work.
I was trying to make a plugin, but I thought of using the .selector
to get elements added in the future (on the fly).
UPDATE
$.fn.myplugin(function (){
$(this.selector)//select future elements...
})
Or is there another approach to this?