my dog learned polymorphism*
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Remove elements which has same name" Watch "Remove elements which has same name" New topic

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.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60782

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:
subject: Remove elements which has same name
Similar Threads
Directory Structure JSP & JS
include alt tags
display problems on reply screen in firefox 3 mac
Virtual Portal and Theme Issue
Saving div area in mysql database