Justin Cooney

Web Development Tips and Examples

Category: JavaScript

  • The question of the day is how to use a regular expression to select the last instance of a word in a string of text. Finding the first instance is quite straightforward, but finding the last isn’t as intuitive.

  • It’s always a good idea to keep a reference for the basics of handling various form elements. Here is my attempt to explain some of the general functions for dealing with drop-down lists in pure JavaScript. Note that I am talking about a simple single-selection drop-down list. The syntax for multiple-selection drop down lists is…

  • JSON is one of the most popular ways of transmitting data between a client and server and is more lightweight than its rival XML. There are many ways to access data in a JSON schema, but overall the simplest is to use pure JavaScript. Why not use an abstraction library such as JQuery? For simple…