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