When calling a custom plugin, how can I get the current selector string?
$('my_selector p').my_plugin();
Would like to output my_selector p
within my script. How can I access this string?
When calling a custom plugin, how can I get the current selector string?
$('my_selector p').my_plugin();
Would like to output my_selector p
within my script. How can I access this string?
Best workaroud is
this returns classic jquery object as $() would
and this returns string of the selector