ASP.net and JQuery UI Datepicker

后端 未结 4 743
情歌与酒
情歌与酒 2021-01-15 21:53

Given:


Where the id = datepicker tells the javascript to attach all the datepicker code to

4条回答
  •  感情败类
    2021-01-15 22:43

    It's not a good idea to bind a datepicker to an ID. better is to give it to the class (in asp.net: CssClass) then, multiple inputs can have datepickers. so in short, bind the datepicker to a class. This also fixes your asp.net problem about the ID's

    
    
    
    

    then in your jquery selector:

     $(".datepicker").datepicker()
    

提交回复
热议问题