I want to remove the wrapper element and it will not work
var $ self = $ ("# Hello"); Var $ selfWrap = $ ("& lt; div class = 'myclass1'"> "); $ Self.wrap ($ selfWrap); $ SelfWrap.remove (); I know that I can just do
$ (". Myclass1"). Remove (); But I will not give jquery to the DOM unless I already have $ selfWrap
There is also opening . $ self.unwrap ();
No comments:
Post a Comment