Combining the CSS3 :not()
selector with the attribute contains selector
can be a challenge, as it seems to not work properly.
Here is an example of the markup:
<input type='text'/>
<input type='text' id="dasd_Date_asd"/>
And here is the corresponding CSS:
input[type='text']:not(input[id*='Date']) {
display:none;
}
View the DEMO
It seems like something is off in this setup. Can anyone pinpoint what might be causing the issue?
Important Note: We are unable to modify the existing markup, so any solutions must work within these constraints.