Skip to content
If you have an element you need to target using an ID or class that contains a colon, for example:...
I recently needed to set a default option for a SELECT drop down list. As you probably already know, select...
The following jQuery script shows how to get the text from an element, without getting the text from any child...
The following script (jQuery and JavaScript) shows how to set a random colour on elements – in this case, a...
The following jQuery can be used to automatically create anchor tags for each of the headings on a web page....
The following jQuery will set all checkboxes on a page to checked/ticked/selected. NOTE: it’s been written for WordPress, which uses...
The following code can be added to your theme functions.php file (anywhere after the opening <?php line) to enable the...
The following jQuery script can be used to automatically add HTTP:// to the start of a input field value if...
The following jQuery shows a method I’ve used to automatically format images with a caption taken from the image ALT...