Datepicker Submit form when select date

后端 未结 1 1146
借酒劲吻你
借酒劲吻你 2020-12-20 05:40

please help me, how can i edit my javascript to submit form after select a date

     Date: 
1条回答
  •  清酒与你
    2020-12-20 05:56

    I found solution. You may rewrite code like this.

    
      
    
    
    $(document).ready(function() {
      $('#datepicker').datepicker({
           onSelect : function (dateText, inst) {
              $('#formId').submit(); // <-- SUBMIT
      }});
    });
    

    This code from another post

    0 讨论(0)
提交回复
热议问题