Bootstrap datepicker and bootstrap validator

后端 未结 6 519
遇见更好的自我
遇见更好的自我 2020-12-19 09:07

I am using the bootstrap datepicker from here and the bootstrap validator from here. Also I am using bootstrap v3.1.1.

After selecting a date from datepicker the va

6条回答
  •  Happy的楠姐
    2020-12-19 09:42

    Above accepted answer didn't work me. What worked for me was very simple.

    $('#datefield').datepicker().on('changeDate', function (e) {
             $('#datefield').focus();
             $('#anyotherfield').focus();
             $('#datefield').focus();             
    });
    

    Hope this helps!

提交回复
热议问题