jQuery Example Page

Back to Al's home page

Sunday, September 20, 2009

Some simple jQuery examples, mainly for use in data input scenarios, hopefully with clear and concise HTML without superfluous extras, which I find really annoying when your trying to get your head around something..

A little background, I'm a VB6 and MS SQL 2000 developer, I have always struggled with the syntax of JavaScript, but have found that jQuery is a lot easier to work with, so here are some useful examples to start from, covering a lot of the stuff I use on a regular basis.

How to show the jQuery version in use.

Did this by populating an elements internal text by specifying the ID, here we are displaying the current jQuery version, but this could be any text

$(document).ready(function() {

Samples list

  1. Bind events by class
  2. Copy value from another text input by clicking on an image

Just to prove to myself that these examples are W3C complaint
Valid XHTML 1.1