> but this line $('#state').add(option); is not adding value to the > select box "state"
The .add() method only adds the option element to the jQuery object, it doesn't modify the document. You probably wanted this: $('#state').append(option);
> but this line $('#state').add(option); is not adding value to the > select box "state"
The .add() method only adds the option element to the jQuery object, it doesn't modify the document. You probably wanted this: $('#state').append(option);