Your button might look like this:
<input type="button" value="Click" />
for this you bind a click handler, for example
$(document).ready(function(){ $("input[type='button']").click(function(e){ alert("somebody clicked a button"); }); });
http://jsfiddle.net/6gCRF/5/
but the disadvantage of this approach is that it will be called for every button click so that you donβt want to add an identifier to your button and select that particular button, for example.
<input type="button" value="Click" id="specific" />
attach a click handler to it, for example
$(document).ready(function(){ $("#specific").click(function(){ alert("specific button clicked"); }); });
http://jsfiddle.net/6gCRF/4/
EDIT
in your case, select the button by id
$(document).ready(function(){ $("#start-lint").clcik(function(){ console.log("clicked"); }); });
you can also use the pseudo :button selector
$(document).ready(function(){ $(":button").click(function(e){ console.log("clicked"); }); });
look at the jquery selector
source share