Menu
what is the error in following code.? The desired output is to show the text box when the option ‘TATA’ is clicked.. Help..
<html>
<head><title>sam</title>
</head>
<script language=”javascript”>
<!–
function cho(a)
{
if(a==”TATA”)
{
<input type=”text” value=”other”>
}
}
//–>
</script>
<body>
<form>
<select name=”cars”>
<option>BENZ
<option>FERRARI
<option>HONDA
<option>TATA
<input type=”button” value=”ok” onClick=”cho(this.form.cars)”>
</form>
</select>
</body>
</html>