Is there a way in CSS to select all input elements of type text?
The HTMLInputElement. select() method selects all the text in a <textarea> element or in an <input> element that includes a text field.
CSS attribute selector is used to targeting an input text fields. The input text fields of type 'text' can be targeting by using input[type=text].
The select() method is used to select the content of a text field.
input[type=text]
{
//css rules
}
This requires CSS 2.1 and won't work in some older browsers (like IE6)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With