Bootstrap form helpers get instances

Worked with bootstrap form helpers library. Looks nice and great integration with twitter bootstrap. But spent a lot of time to figure out how to access bfhdatepicker and bfhtimepicker objects. Unfortunately googling didn’t get any answer. As usual key was simple 🙂 Hope this will save time for someone else.

   var datePicker = $('#datepicker_id').data('bfhdatepicker');

   var timePicker = $('#timepicker_id').data('bfhtimepicker');

One thought on “Bootstrap form helpers get instances

Leave a Reply

Your email address will not be published. Required fields are marked *