Is it possible to generate an Html form object from a JavaScript function? Because I have a dropdownlist (a Select form object in asp.net vb.net page) in which the user has to choose an option, and if he/she choose the option 7 an ‘input text’ form object has to appear, and if she/he choose whatever option after choose option 7 it has to disappear. For instance something like this:
[code]
function checkOtherAct() {
var userAct = document.formName.userA.value
var myTD = document.getElementById(“specificAct”);
switch(userAct) {
case “0”:
myTD… //No input text
break;
case “1”:
myTD… //No input text
break;
…
case “7”:
myTD… //An input text
break;
default:
break;
}
}
checkOtherAct();
On the form:
[code]
<td><asp:dropdownlist id=”userA” onChange=”checkOtherAct()” runat=”server”…></asp:dropdownlist></td>
<td id=”specificAct”> </td>
Thanks