Hi,
the following code checks if the value of the field 'to' of a form is equal to 0049 and if yes it returns a message..
PHP Code:
if (document.Formular.to.value == "0049") {
alert('Wollen Sie die SMS ins Nirvana schicken?')
document.Formular.to.focus();
return false;
}
What would the code look like just to check if the value of that field starts with 0049?
Thank you!
--------------- Added [DATE]1219666173[/DATE] at [TIME]1219666173[/TIME] ---------------
any help with this?