This jQuery plugin will add a background color to text, password, and textarea input fields in forms when focused, and then revert to the original background color on blur. It is a one line call, with one (optional) parameter, the background color. You can target all forms on the page with this simple line: $(‘form’).formFocus();… Continue reading jQuery Form Focus Plugin
Category: jQuery
jQuery Selectors Last and Last-Child
jQuery has a plethora of selectors, two of which being :last and :last-child. It should be very obvious that these do not achieve the same goal. Well, I spent the better part of an hour figuring that out. I went down the page of selectors knowing jQuery has a selector for :last-child, and saw :last… Continue reading jQuery Selectors Last and Last-Child