remove() not working in jquery, turn no method -


var deletetarget = $('ul li .active'); deletetarget.remove(); 

not sure what's wrong, console says has no method, or shall still use $(deletetarget) ?

$ not jquery in case.

you can check if with:

console.log($().jquery); // if undefined, it's not jquery 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -