bootstrap data-toggle=“tab” – how to make a tab active with a JS call

Hello all, Do you ever need kind of situation where we want bootstrap Toggleable / Dynamic Tabs (not first i.e. 2nd or 3rd) to be active on load for particular condition. ? If yes then this code may be helpful to you. Just write this with $(window).load and this will resolve do your task. jQuery(window).load(function() … Continue reading bootstrap data-toggle=“tab” – how to make a tab active with a JS call

Disable minDdate to selection with allowing to show old dates in input

Hello guys, Did you ever met in such kind of situation where you want to set minDate to Today but still at least user can have the date in input which becomes past date after that day is gone according to Eonasdan/bootstrap-datetimepicker.  Well I had that case, so to overcome to this issue, there is a parameter in this awesome … Continue reading Disable minDdate to selection with allowing to show old dates in input

Validate whole form with Bootstrap Validator

Hello All, In this post, I am gonna tell you a trick about Bootstrap Validator is very simple and easy to use validation, you can check it   $(‘form.user_registration’).on(‘validated.bs.validator’, function (e) { if ($(‘form.user_registration’).validator(‘update’).has(‘.has-error’).length) { //do_something_when_form_has_error } else { //can_revert_when_form_is_error_free } });   Here,  form.user_registration is our form with class user_registration.   Hope it’ll be helpful to anyone … Continue reading Validate whole form with Bootstrap Validator