I need to have a button and handle its event in jQuery. And I am writing this code but it'snot working. Did I miss something?
<!-- Begin Button -->
<div class="demo">
<br> <br> <br>
<input id = "btnSubmit" type="submit" value="Release"/>
<br> <br> <br>
</div>
<!-- End Button -->
And in the javascript file
function btnClick()
{
// button click
$("#btnSubmit").button().click(function(){
alert("button");
});
}