0

hello...help me rapidly..
query is that.. when we select the mail from the select tag and then automatically display the two text box like user name and contact no.. how i do this...? but remeber it that without use button....i hope as soon as i vl get my perfect ans...

4
Contributors
3
Replies
25
Views
4 Years
Discussion Span
Last Post by arundhati dalal
0

This can be done in many ways, here is the one quick solution..

<script>
function PerformAction() {
    var SelectedValue = document.Form.SelectValue.value;
    if(SelectedValue == "mail") document.getElementById("VisibleID").style.visibility="visible";
    else document.getElementById("VisibleID").style.visibility="hidden";
    return false;
}
</script>
<form action="" method="get" name="Form">
  <select onchange="PerformAction()" name="SelectValue">
    <option value=""></option>
    <option value="mail">Mail</option>
  </select>
  <div style="visibility:hidden;" id="VisibleID"> Username :
    <input name="" type="text" />
    <br/>
    Contact Number :
    <input name="" type="text" />
  </div>
</form>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.