Plese let me know how to go with this.
here is the code snippet
Expand|Select|Wrap|Line Numbers
- if(document.addCR.softwareName.value == 'Others'){
- document.addCR.hdnSelectedSW.value = document.addCR.softwareName.value;
- var mytablebody = document.getElementById('otherName');
- var row=document.createElement("<TR>");
- var srch = document.createElement("<TD>");
- var txt1 = document.createTextNode("Other Name");
- srch.appendChild(txt1);
- row.appendChild(srch);
- var td3=document.createElement("TD");
- var otherTxt = td3.appendChild(document.createElement("<input type='text' name='otherText'></input>"));
- row.appendChild(td3);
- mytablebody.appendChild(row);
- otherName.style.visibility = 'visible';
- }else{
- otherName.style.visibility = 'hidden';
- }