I have several text boxes that are populated automatically when a user chooses a Selection in a Select box:
function putValue(sValue)
{
//used to capture the FirstName, LastName,
//and phone number of the Case Manager that
//the user selects
sValue = sValue.split('|');
document.forms[1].CMFirstName.value = sValue[0];
document.forms[1].CMLastName.value = sValue[1];
document.forms[1].CMPhone.value = sValue[2];
document.forms[1].CMDisplayPhone.value = sValue[2];
}
One of the text boxes (CMDisplayPhone) needs to be formatted to be read like a phone number for Display to the User (i.e. 123-456-7890 ).
How can I do this?
TIA
function putValue(sValue)
{
//used to capture the FirstName, LastName,
//and phone number of the Case Manager that
//the user selects
sValue = sValue.split('|');
document.forms[1].CMFirstName.value = sValue[0];
document.forms[1].CMLastName.value = sValue[1];
document.forms[1].CMPhone.value = sValue[2];
document.forms[1].CMDisplayPhone.value = sValue[2];
}
One of the text boxes (CMDisplayPhone) needs to be formatted to be read like a phone number for Display to the User (i.e. 123-456-7890 ).
How can I do this?
TIA