forum

Home / DeveloperSection / Forums / JQuery ui dialog is not opening on button click when auto open is set to false

JQuery ui dialog is not opening on button click when auto open is set to false

Anonymous User 2185 01-Apr-2015

I’m using asp.net forms this page I’m working on has a master page it works great when autopen is false but when auto false is true I don’t know why it doesn’t work. Code is. 

$(document).ready (function () {
 
         $("#dialog").dialog({
            autoOpen:false,
            appendTo:"form",
 
            show: {                effect: "fade",
               duration: 1000
            },
                             hide: {
                effect: "explode",
                duration: 1000
            },
 
            buttons: {
                Ok: function () {
                    $("[id*=btnmsgOk]").click();
                    $(this).dialog("close");
                },
                Cancel: function () {
                    $(this).dialog("close");
                }
            }
        });
 
 });

and i call this function by this.. 

$('<%=btnSave.ClientID %>').click(function () {
             $("#dialog").dialog("open");
          });

but it dosent work.


Updated on 01-Apr-2015
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By