selector info lost after wrap a jquery object
selector info lost after wrap a jquery object
var obj=$(".foo");
console.log(obj.selector); // ".foo"
obj=$(obj);
console.log(obj.selector); // ""
as you see above,the selector info lost after be wrapped
why
and how to resolve it ?
Topic Participants
zzzgoo