Tag Archives: jquery ui

jQuery UI Datepicker

jquery-ui-datepicker




To set current date in control to which jQuery UI datepicker bind, use setDate() method. Pass date object which needs to be set as an argument to setDate() method. If you want to set it to current date then you can pass ‘today’ as argument. So, jQuery code to set current date may look like something similar, $(document).ready(function() { $(‘#txtDate’).datepicker(‘setDate’, ‘today’); }); But Wait!!! Above jQuery code will not work. It will not set the current date. Wondering why? Well, […]

Tooltip using jQuery UI library

tooltips




Tooltips can be attached to any element. To display tooltips, one need to add title attribute to input elements and title attribute value will be used as tooltip. When you hover the element with your mouse, the title attribute is displayed in a little box next to the element. I had already posted that jQuery UI 1.90 is released and there are some widgets which are introduced with jQuery UI 1.90. One of the new widget is Tooltip. In this […]