detecter un click sur un bouton en jquery

Solutions on MaxInterview for detecter un click sur un bouton en jquery by the best coders in the world

showing results for - "detecter un click sur un bouton en jquery"
Nail
19 Sep 2020
1 $(document).ready(function() { $( "form" ).submit(function () { // Get the submit button element var btn = $(this).find("input[type=submit]:focus" ); }); } 
Edgar
06 Jul 2017
1 $(form).submit(function(e){ // Get the button that was clicked var submit = $(this.id).context.activeElement; // You can get its name like this alert(submit.name) // You can get its atsortingbutes like this too alert($(submit).attr('class')) });