PDA

View Full Version : Function check


stonner
08-24-2008, 07:48 PM
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..

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 1219666173 at 1219666173 ---------------

any help with this?