var state = getState(txtZip.value)
for(var i = 0; i < optionBox.options.length; i++)
if(optionBox.options[i].value == state)
return optionBox.options[i].selected = true;
for(var i = 0; i < optionBox.options.length; i++)
if(optionBox.options[i].value == "XX")
return optionBox.options[i].selected = true;


I am looking into using this very cool script, but I have 1 small issue... I need to use any other tag other than the value. I am using the value for PHP and need to have a 2 char value here... but I have a full value going to PHP. Would it be possible for me to have the script read the id ?

If you have any suggestions on how I can make this work, that would be fantastic!