Hi, I have the following code.
$(document).ready(function() {
$('#btnOpen').click(function(e) {
$('#content').modal({
onOpen: function(dialog) {
dialog.overlay.fadeIn('slow', function() {
dialog.data.hide();
dialog.container.fadeIn('slow', function() {
dialog.data.slideDown('slow');
});
});
},
onClose: function(dialog) {
dialog.data.fadeOut('slow', function() {
dialog.container.slideUp('slow', function() {
dialog.overlay.fadeOut('slow', function() {
$.modal.close(); // must call this!
});
});
});
}
});
});
$('#btnClose').click(function(e) {
$.modal.close();
});
If I use <a hrf ="#" id="btnOpen">Open</a>
, it works perfectly.
If I replace the with an ASP.net Button,
<asp:Button ID="btnOpen" runat="server" Text="Open" />
, nothing happened... Any help please?