Wednesday, 1 October 2014

jquery call function on button click

jquery call function on button click

<button type="button" id="button">Click Me!</button>


$(function(){
    $('#button').click(function() {
        alert("Hello");
    });
});

Demo http://jsfiddle.net/vipulg/gm68jxas/2/

No comments:

Post a Comment