JQuery datepicker not working after ajax call

后端 未结 5 1649
一向
一向 2021-01-18 09:57

I have the following code


    
       //included all jquery related stuff ..not shown here
    
    
               


        
5条回答
  •  感动是毒
    2021-01-18 10:48

    I came across this question because I was having the same problem as OP.

    Mooed Farooqui's recommendation to reinitialize in Ajax success worked, but not initially.

    Ended up that I was also calling the datepicker function in my equivalent of my_ajax_stuff.php. After I took that out it worked perfectly on button reload and postbacks. Hope this helps someone that stumbles upon this old question...

提交回复
热议问题