Zipcode Script Issue

Apr 19, 2007

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 ?

View 15 Replies


ADVERTISEMENT

Validation For US And Canada Zipcode

Jul 7, 2011

I have tried different types of validation for both zipcodes and cannot get them to work. Originally I had the field in spry but apparently you can't validate both formats at the same time or I can't figure it out. So then I tried javascript and I can't get that to work. I really don't know anything about javascript so can't tell you what I am doing wrong.

View 4 Replies View Related

Scripts Regex - Validation For Zipcode ?

Jul 7, 2011

I have tried many different scripts Regex and different javascripts but nothing seems to work. The code I will send is about the closest I have gotton but it pops up a box whether it is valid or not. I just really know nothing about javascript to even know what to change.

View 2 Replies View Related

Create A "search Business By Zipcode" Code?

May 11, 2011

how to create a "search business by zipcode" code? [URL]

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved