Click here to Skip to main content
Sign Up to vote bad
good
See more: JavascriptjQuery
I need to remove all div element if css property has same position or font name, using javascript or jquery.
Posted 31 Jan '13 - 0:53
Edited 31 Jan '13 - 0:54

Comments
Ankur\m/ - 3 Feb '13 - 6:24
an upvote, if the answer helped would have been nice.

1 solution

This should help.
$("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. Smile | :)
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 508
1 Arun Vasu 315
2 Maciej Los 218
3 OriginalGriff 205
4 Aarti Meswania 170
0 Sergey Alexandrovich Kryukov 9,670
1 OriginalGriff 7,409
2 CPallini 3,968
3 Rohan Leuva 3,352
4 Maciej Los 2,861


Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 31 Jan 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid