Disabling certain days in jquery UI datepicker
I wrote a site for my local pub and it involved a restaurant booking section. The user could select a date and a time (plus name, phone number and number…
A bunch of ramblings about PHP programming, JQuery, MySQL and other 'stuff'
I wrote a site for my local pub and it involved a restaurant booking section. The user could select a date and a time (plus name, phone number and number…
I wanted to pass a simple key/value string to an Ajax request, but you cannot simply use the variable as the key in the data: var $fieldname = 'company_name'; var…
I often have the problem that the autosuggest isn’t flexible enough, and I need to show contact name AND client name in the drop down Here is a way you…
I needed a custom sort column for jquery tablesorter (http://tablesorter.com/docs/) for dates in the format of 12-Aug-2013 as the default tried to sort it as a string Was quite complicated…
If you need to use :contains() as a selector but need a case insensitive one, you need to extend jQuery yourself: This function will do it: $.extend($.expr, { 'containsi': function(element,…
Simple one. $(document).on('#element', 'keyup', function(event) { if (event.keyCode == 13) { event.preventDefault(); //do some other stuff } }); This doesn’t actually work as the Key Up event is too late…
If you use the above to show a nice loading message when an AJAX call is performed, you may have come across the problem that a JSONP request means the…
If you use the above to show a nice loading message when an AJAX call is performed, you may have come across the problem that a JSONP request means the…
Say you want to use a selector to select all controls with a certain class, apart from a particular one. Use the not selector: $('.selectedClass:not(#exceptionId)').functions(); Sweet.
http://odyniec.net/projects/imgareaselect/ I have been using this excellent jQuery plugin which allows the user to draw a lasso around several objects to highlight then and bulk change them. However, they way…