jQuery datepicker only works once and is not shown the second time

后端 未结 10 1360
庸人自扰
庸人自扰 2021-01-02 06:32

ASP.NET MVC3 / jQuery 1.9.1 / jQuery UI 1.10.2

I\'ve got a page on which I open a modal dialog after clicking on an Ajax.ActionLink. Inside this dialog

10条回答
  •  悲哀的现实
    2021-01-02 07:12

    If you need to show more than one time in the same view the calender and it only show's one time try this:

    document.getElementById("div_Validade").onclick = function () { SetZIndex() };
    
    function SetZIndex() {
        document.getElementById("ui-datepicker-div").style.zIndex = "999999";
    }
    

    div_Validade corresponds to the div id where the input is placed,

    ui-datepicker-div is infragistics element that is not shown.

提交回复
热议问题