Caritatis

Just another WordPress.com weblog

jQuery Note August 12, 2011

Filed under: jQuery — caritatis @ 4:54 pm

When using the jQuery library, make sure the code you write is always enclosed in the $.ready function:

$(function () {
    //Type in your code here
});

This makes sure that the code you write will be executed once the page has finished loading

from:  http://stackoverflow.com/questions/345540/how-to-disable-a-select-box-not-inside-a-form

Advertisement
 

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.