i have two divs with the same ids but one has display=none and the other has display=block
i want to delete the one with display=’none’
i am using javascript framework prototype
i have two divs with the same ids but one has display=none and the
Share
You should switch to giving the divs classes instead of id’s. ID’s are unique identifiers, thus are unique, and a page should only contain one element per id (an id can not have multiple elements).
If you’d gave the divs classes instead of id’s you could do this:
My Prototype is a bit rusty, but I think this should do it.
EDIT: forgot you can’t directly filter by CSS properties.