I\'m trying to replace a drop down menu I have with a text field if someone chooses the \"other\" option. Right now in my code I have it replacing it with a paragraph elemen
function show_txt(arg,arg1)
{
if(document.getElementById(arg).value=='other')
{
document.getElementById(arg1).style.display="block";
document.getElementById(arg).style.display="none";
}
else
{
document.getElementById(arg).style.display="block";
document.getElementById(arg1).style.display="none";
}
}
The HTML code here :