Wednesday, March 14, 2012

How to Handle button click event in jquery

Code :

<script type="text/javascript" language="javascript">
$(document).ready(function () {
$("[id*='btnSave']").click(function (event) {
event.preventDefault();
if (confirm("Want to save data?")) {
$(this).unbind('click').click()
}
});

});
</script>

No comments: