zhang80.touch99
New Member
I can provide the code for this, but I don't think it is required.I have a State/Country dropdown in a contact form. When a state/country is selected, I have a phone field. When a US number is selected I have a script to format the number in like a standard US number. However if you select a non US country after you have entered it deletes the entry you typed in the phone field, as it changes the formatting.Is there a way to possibly write a JQuery script to save the number in a variable and write the number back after you change the Country/State field?The plugin I'm using to format the number is http://digitalbush.com/projects/masked-input-plugin/