Answers for "bind jquery trough name"

0

bind jquery trough name

<html>
<input type="button" id="btnSubmit" name="btnName" class="btnclass" value="Click Me" />
</html>

$('input[name="btnName"]').click(function(){
    //do stuff
});
Posted by: Guest on February-26-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language