Hi,
How to select multiple items on a menu list.
I always get the error message from the Java Script even if I did select the items.
This only happen when using IE7 but when using FireFox, it doesn't happen.
Any idea how to solve the problem.
---------------------------------------------------------------------------
[HTML]<head>
<script type="text/javascript">
function validate_form()
{
if ( document.testmu ltiple_form.cfi rst_name.value == "" )
{
alert ( "Please select an option!!!." );
return false;
}
else
{
return true;
}
}
</script>
</head>
<body>
<form action="testmul tiple.html" onsubmit="retur n validate_form() " method="post">< b>
.....
<select name="state" size="07">
<option></option>
<option>Succeed </option>
<option>Nkulule ko</option>
<option>Zulu</option>
<option>Hahah a</option>
<option>Hohoh o</option>
<option>Heheh e</option>
</select>
....
<input type="submit" value="Submit">
</form>[/HTML]
Kindly help if you can.
Thanks a lot.
How to select multiple items on a menu list.
I always get the error message from the Java Script even if I did select the items.
This only happen when using IE7 but when using FireFox, it doesn't happen.
Any idea how to solve the problem.
---------------------------------------------------------------------------
[HTML]<head>
<script type="text/javascript">
function validate_form()
{
if ( document.testmu ltiple_form.cfi rst_name.value == "" )
{
alert ( "Please select an option!!!." );
return false;
}
else
{
return true;
}
}
</script>
</head>
<body>
<form action="testmul tiple.html" onsubmit="retur n validate_form() " method="post">< b>
.....
<select name="state" size="07">
<option></option>
<option>Succeed </option>
<option>Nkulule ko</option>
<option>Zulu</option>
<option>Hahah a</option>
<option>Hohoh o</option>
<option>Heheh e</option>
</select>
....
<input type="submit" value="Submit">
</form>[/HTML]
Kindly help if you can.
Thanks a lot.
Comment