jQuery UI Dialog with ASP.NET button postback

前端 未结 17 2075
鱼传尺愫
鱼传尺愫 2020-11-22 14:43

I have a jQuery UI Dialog working great on my ASP.NET page:

jQuery(function() {
    jQuery(\"#dialog\").dialog({
        draggable: true,
        resizable:          


        
17条回答
  •  借酒劲吻你
    2020-11-22 15:21

    Be aware that there is an additional setting in jQuery UI v1.10. There is an appendTo setting that has been added, to address the ASP.NET workaround you're using to re-add the element to the form.

    Try:

    $("#dialog").dialog({
         autoOpen: false,
         height: 280,
         width: 440,
         modal: true,
         **appendTo**:"form"
    });
    

提交回复
热议问题