Users Pricing

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 2514 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.


I am a content writter !


1 Answers