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/
<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