Code sample

blockUI tip for removing inline styles

Quick tip! While using blockUI, I found the need to zap some CSS styles that were being added, inline, by the plugin. It took me a few minutes, but the answer was pretty simple (though not explicitly mentioned in the … Continued

Safari iO S select dropdown bug fix

I came across an irritating iOS select dropdown bug while testing a production site on an iPad. The bug occurs when the user tries to select the first option where no other options have been selected previously, either via user … Continued

Textarea copy injector

I needed to build a UI component that injected some copy into a textarea. It needed to save any text that was already entered, and it needed to place the cursor at the end of the newly injected text (actually, … Continued

Quick email validation with jQuery

I whipped together this quick email validation script the other day. As far as validation scripts go, it is more basic than basic. Here is the jQuery: $(‘#inputID’).bind(‘blur focus’, function(event){ if(event.type === ‘blur’){ //cache jquery objects var $invalidEmailError = $(‘#invalidEmailError’), … Continued

Simple tooltip (using title attribute on link)

Here is a very simple tooltip script I wrote a while back. There are tons of tooltip scripts out there, and most are much more complex than mine. I’ve decided to post it anyway, as perhaps it will come in … Continued