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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -