samedi 10 mars 2018

JQuery .click function not doing anything

I'm just starting with JQuery and generally web development, so this question might be really easy but I would appreciate your help.

Javascript code:

$(document).ready(function(){
    $("#convbut").click(function() {
        alert( "Handler for .click() called." );
      });
  });

HTML button:

<button name="conversion" type="button" id="#convbut">Convert</button>

When clicking Convert button I am not getting alert message.

Aucun commentaire:

Enregistrer un commentaire