It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

some one tell me my code wrong/right

some one tell me my code wrong/right

Postby sarfraz on Fri Apr 23, 2010 2:47 pm

can someone tell me if my code is wrong here

<script>
function CheckSelection(selObj)
{
if(selObj.value == "Lyrics1"){
documnet.getElementById("txtOther2").style.display = "none"
document.getElementById("txtOther1").style.display = ""}
else
if (selObj.value == "Lyrics2"){
documnet.getElementById("txtOther1").style.display = "none"
document.getElementById("txtOther2").style.display = ""}
}
</script>

<table>
<tr>
<td valign=top>
<SELECT ID="Select1" NAME="Select1" onchange="CheckSelection(this)">
<OPTION value="None">None</OPTION>
<OPTION value="Lyrics1">Lyrics</OPTION>
<OPTION value="Lyrics2">Lyrics2</OPTION>
</SELECT>
</td>
<td>
<input type=text id=txtOther1 style="display:none" value="Hey">
<input type=text id=txtOther2 style="display:none" value="Hey Again">
</td>
</tr>
</table>
sarfraz
 
Posts: 3
Joined: Fri Apr 23, 2010 2:42 pm

Who is online

Users browsing this forum: No registered users and 5 guests