Just like we have selectors like ("#id_name"),(".class_name") (":input_type")
..etc in jquery, how can I select the title
attribute from an input tag?
Example: < input type="abc" id="xyz" title="information" >
I need a selector to select title value.
$('input[title="information"]');
$('input').attr('title');
@Alex is partially correct, you can have numbers but the id just cannot start with a number.
in your case you would selected the input like this.
$('#xyz').attr('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