views:

53

answers:

1
+1  Q: 

Jquery click event

This is my code

$(document).ready(function () {
    $("#Button1").click(showDialog);
});

var showDialog = function () {
    /* Something I do here */
}

Here the "Button1" click event fire at first time, after that the event was not firing.

Thanks, Ram

+2  A: 

Something in showDialog is causing an error which 'halts' the processing of further actions.

Check your browsers error log. If you're in Firefox, just press Ctrl+Shift+J and a list of errors on the page should pop up.

Tatu Ulmanen