jQuery getElementById

07.Jul.2010

Replace getElementById JavaScript function by using jQuery selector.

Your old getElementById code:

document.getElementById('unique_id').doSomething();

Your new jQuery code:

jQuery('#unique_id').doSomething();