skip to Main Content

Twitter bootstrap – TypeError: $(…).datepicker is not a function in thymeleaf

jQuery date picker is not working Here is my html <!DOCTYPE html> <html layout:decorator="layout" xmlns:th="http://www.thymeleaf.org"> <head> <title>Tables | Bootstrap 3.x Admin Theme</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <script type="text/javascript" src="/js/bootstrap.min.js"></script> <script type="text/javascript" src="/js/twitter-bootstrap-hover-dropdown.min.js"></script> <script type="text/javascript"…

VIEW QUESTION

Cannot disable Twitter bootstrap button with jQuery?

I am doing some AJAX when a button is clicked $btn.button('loading'); $.ajax({ type: 'PUT', url: 'event/', data: put_data, dataType: 'json', success: function(data){ if (data.redirect) { window.location = data.redirect; } else { $btn.button('reset'); if ($btn.is('#my-btn')) { console.log('disabling button'); $btn.prop('disabled', true); }…

VIEW QUESTION
Back To Top
Search