rstaticn
07-25-2003, 12:56 PM
I'm having troubles here with a piece of js code.
for example if you had some sort of setup like this
<html>
<script language = "javascript">
function checkForm(f){
alert (f.address:street.value);
return false;
}
</script>
<body>
<form onSubmit="return checkForm(this)">
<input type = "textBox" name = "address:street">
<input type = "submit" value = "Click Me">
</form>
</body>
</html>
this results in an error due to the, :
do you know if theres anyway of getting around this?
thanks in advance!
for example if you had some sort of setup like this
<html>
<script language = "javascript">
function checkForm(f){
alert (f.address:street.value);
return false;
}
</script>
<body>
<form onSubmit="return checkForm(this)">
<input type = "textBox" name = "address:street">
<input type = "submit" value = "Click Me">
</form>
</body>
</html>
this results in an error due to the, :
do you know if theres anyway of getting around this?
thanks in advance!