OO Javascript

This document contains some hints on how to use for object oriented programming. jQuery snippets

Some snippets of code showing how to use jQuery

// return true if the element is an input $(‘#elementId’).is(‘input’); // get the name of the tag $(‘#elementId’).get(0).tagName Plain Object Definition

simple example: define an object in javascript [link_01]

This sample [...]