Hi,
I have got this html, javascript code
<html>
<head>
function get()
{
alert(document. form1.xyz.value );
alert(document. form1.xyz.title );
return true;
}
</head>
<body>
<form method="get" name="form1" id=form1>
<table>
<tr>
<td><select id=xyz name=xyz onChange="javas cript:get();">
<option value="-1">------ select a name-------</option>
</td>
</tr>
</table>
</form>
</body>
</html>
The first alert statement will print the value -1, i need to know if the 2nd
alert statement
will print "-------select a name---------"?
Is there anything like title property exists, if so can you please correct
me on how to use it.
Your help is highly appreciated.
Regards
Venkat
I have got this html, javascript code
<html>
<head>
function get()
{
alert(document. form1.xyz.value );
alert(document. form1.xyz.title );
return true;
}
</head>
<body>
<form method="get" name="form1" id=form1>
<table>
<tr>
<td><select id=xyz name=xyz onChange="javas cript:get();">
<option value="-1">------ select a name-------</option>
</td>
</tr>
</table>
</form>
</body>
</html>
The first alert statement will print the value -1, i need to know if the 2nd
alert statement
will print "-------select a name---------"?
Is there anything like title property exists, if so can you please correct
me on how to use it.
Your help is highly appreciated.
Regards
Venkat
Comment