| Welcome to WebmasterWorld Guest from 22.214.171.124 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
|Killing Unique IDs Globally with CSS|
Form programmers generate IDs. I want to kill them, the IDs, that is...
I work on a site that generates unique IDs for a given form element every time I build a new form.
For example, there are these date pickers inside a cell inside a row with the IDs tr_range123 or tr_range456, etc.
I want to kill these date pickers but the only way to do it is apply display:none; to these IDs ... Is there any way to apply styles to all these IDs -- past, present and future?
Is there something like that out there? I've heard of CSS variables but I think it's different. Also, I need something that's pretty browser-friendly.
Do they also have a class, or are contained by something else regularly? You probably already thought of that . . .
Unfortunately, no classes and no other inheritance options without breaking stuff, most likely. Thanks, though. I guess that's a 'no' on wildcards.
Hi mrjohncory, what browser versions are you supporting? If not ie6, then the css3 substring attribute selector should do it.
Something like tr[id^=tr_range]
Wow, that is exactly what I was hoping for and scary powerful. Thanks!
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved