aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Remove elements which has same name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Remove elements which has same name" Watch "Remove elements which has same name" New topic
Author

Remove elements which has same name

amit sharma
Ranch Hand

Joined: Jul 19, 2006
Posts: 129
Let i have 20 divs which all has same name.Now i want to remove all this div .This div may contain images also .Is all this images also remove when i remove div.
Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60049
    
  65

By "name" do you mean id? If so, then the HTML is invalid and cannot be dealt with in a deterministic fashion. Fix the HTML.

Or, by "name" do you mean the name attribute of form input elements?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Remove elements which has same name
 
Similar Threads
Saving div area in mysql database
Virtual Portal and Theme Issue
display problems on reply screen in firefox 3 mac
include alt tags
Directory Structure JSP & JS