Is there a way to add a specific attribute to all input[type=text] elements while excluding certain elements that do not have a class but their parent does?
Here is an example of the HTML structure:
<tr class="filters">
<td>
<input type="text" name="aName">
</td>
<td>
<input type="text" name="anotherName">
</td>
...
</tr>
I attempted to use the following CSS:
input[type=text]:not(tr.filters > td > input[type=text])
{
min-width:400px;
}
However, this method did not produce the desired result. Is there an alternative way to achieve this without the use of the not()
function?