in my case I create this..
function CheckEtc(str) {
if (document.getElementById(str + 'Check').checked)
{
document.getElementById(str + '1').style.display = 'none';
document.getElementById(str + '2').style.display = 'inline';
}
else
{
document.getElementById(str + '1').style.display = 'inline';
document.getElementById(str + '2').style.display = 'none';
}
}
<tr>
<td width="121" bgcolor="#E1E1E1">ºÐ·ù</td>
<td colspan="3"><select id="propart1" class="memr"
style="width: 150px;" style="display: none;"><option
value=»ýÈ°±âȹ>»ýÈ°±âȹ</option><option
value=¾Ç±â±âÃÊ>¾Ç±â±âÃÊ</option><option value=¿µ»ó>¿µ»ó</option><option
value=ÈüÇÕ>ÈüÇÕ</option></select><input id="propart2" name="propart2"
type="text" class="memr" style="display: inline;" style="width: 150px;"
maxlength="50">
<input id="propartCheck" type="checkbox"
name="CheckEct" onClick="CheckEtc('propart');" checked>
±âŸ
</td>
</tr>
--
JinHyung Lee
msn :
sa*****@hotmail.com
blog :
http://ddongdog.egloos.com
"Eddy Scheire" <ed**********@skynet.be> wrote in message
news:41*********************@news.skynet.be...
Hi all,
I've got this listbox and this text field on an ASP page. Now I want the
item I click on in the listbox to appear in the text field and I can't
find the code nowhere for what seems to me such an easy thing to do.
Any help would be appreciated.
Thanx in advance,
Eddy