Using jquery, I want to select input[type="text"] elements which has a title attribute(not a specific content, just the existance of the title).
How can I achieve that ?
You can specify multiple attributes, as in the following selector:
$('input[type="text"][title]')
Working example here: http://jsfiddle.net/VW64y/
An attribute selector without the equals clause will just test for existence:
$("input[type='text'][title]");
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