Category Archives: JavaScript

Simple User Message with Dynamic Reading Speed

Here’s a quick user message, which uses jQuery to fade in, pause and then fade out. The clever bit is that it works out how long to display the message based on its length. The JavaScript function takes a string … Continue reading

Posted in box-shadow, delay(), jQuery, Math.ceil, Regex | Tagged , , , , , | Comments Off on Simple User Message with Dynamic Reading Speed

Easy Search As You Type List Filtering with jQuery

This post shows a quick and easy way of searching or filtering a list by typing into a textbox. Matching list items are revealed as you type. This is great for working with any list to long to scan in … Continue reading

Posted in click(), datalist, filter(), html, indexOf(), input(), JavaScript, jQuery, on(), toLowerCase() | Tagged , , , , , , , , , , | 4 Comments

jQuery .on() – How to use it with $(this)

I’m posting this as IĀ foundĀ this particular jQuery method quite difficult to understand from the official documentation at jquery.com. Documentation on the use of $(this) with .on() is not easy to find at the time of writing. ‘Normal’ selectors for events … Continue reading

Posted in JavaScript, jQuery, on() | Tagged , , , , , , , , , , , | Comments Off on jQuery .on() – How to use it with $(this)