How can i select 'title' attribute in an input tag in jquery?

Rahul_2289 picture Rahul_2289 · Jul 27, 2011 · Viewed 60.3k times · Source

Just like we have selectors like ("#id_name"),(".class_name") (":input_type")..etc in jquery, how can i select title attribute from an input tag?

Ex:< input type="abc" id="xyz" title="information" >

i need a selector to select title value. Help me.

Answer

Alex Ackerman picture Alex Ackerman · Jul 27, 2011
$('input[title="information"]');