Remy wrote this:

http://remysharp.com/2007/01/20/auto-populating-select-boxes-using-jquery-aj
ax/

And I used the example to a T.  what I didn't notice is that in the example
and now my code, the last option is always selected.  I even change this
line:
    var options = '';
To
    var options = '<option value="" selected>-Select-</option>';

But it still results in the last option being the default selected.

Any insights on how to fix this?

I know I can do the whole document.formname.myselectfield[0].selected =
true;

Is there a way to do it with jQuery since I know the ID of my field?

Reply via email to