Categories
-
Recent Posts
- Check if the start of the month is in X days – PHP function
- PHP Fatal error: Out of memory – Prevention better than Cure
- Dynamic object property names in Javascript
- Format price with 2 decimal places in PHP
- Steve Jobs 1955-2011
- Become the fastest programmer in the world
- How to get Parent of Parent Post in WordPress
- Timing is everything
- Facebook Like – small button, BIG marketing potential
- Generate array with x years before/after the current year
Category Archives: jQuery
Highlight a keyword using jQuery
Normally you would perform this type of operation server-side with PHP. I’ve put together a javascript solution for when it’s not possible to do so. In this case, I have set the context as all paragraph tags. You can change … Continue reading
Posted in jQuery
Comments Off
Simulate target blank with jQuery
The target attribute is not valid using the xhtml strict doctype, so I wrote this javascript workaround.
Posted in jQuery
Comments Off
Limit the number of checkboxes a user can select with jQuery
The following code limits the number of checkboxes a user can select simultaneously.
Posted in jQuery
Comments Off