JSFiddle - React, Tailwind, and code Playground
by niklasvh
HTML
<input type="button" value="My task">
JavaScript
console.log($('input[type="button"][value="My task"]').val());
by niklasvh
<input type="button" value="My task">
console.log($('input[type="button"][value="My task"]').val());