Select button by value

Viewed 37666

How do I select a button with specific value with jQuery?

<input type="button" value="My task">
5 Answers

Just another approach, useful in some exceptional cases where value and text inside <button> element is different

<button value="Value X">Value Y</button>
$("button:contains(Value Y)")
Related