I have my login page deployed which is working fine. the User ID is a text field that is a 9 digit number, often seen by the user as XX-XXXXXXX. In the input for the login screen, if someone enters the hyphen, I'd like to add script to remove it so it happens in the background.
This is what I added so far that is not working:
<SCRIPT LANGUAGE="JavaScript">
function nophyphen()
{
var a = document.getElementById("xip_EIN").value;
a = a.replace(/-/g, "");
}
document.getElementById("caspioform").onchange=nohyphen;
</script>