Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to remove all div element if css property has same position or font name, using javascript or jquery.
Posted
Updated 31-Jan-13 0:54am
v2
Comments
Ankur\m/ 3-Feb-13 6:24am    
an upvote, if the answer helped would have been nice.

1 solution

This should help.
JavaScript
$("div").each(function (index) {
    if ($(this).css("font-family") == "Verdana" || $(this).css("position") == "relative") {
        this.remove();
    }
});

Note: I haven't tested it.

You should write these on your own or at least try it. Then only you will learn it. You cannot always rely on the people to help you. :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900