text box disappers
I have some ids to be searched. I want to display two text boxes and where i give two values.As soon as i click find only one text box appears and another one disappears. Here is my code.



    if(op.value == 2){
           alert("value is 3");
            document.getElementById('test_name').style.display="";
          //valueOfop(op);
        }else{
           document.getElementById('test_name').style.display="none";
        }

 only for a particular option i have to show two text boxes and hence i cannot remove the else part. Any suggestions to retain the value of the text box ?
text box disappers
===

I have some ids to be searched. I want to display two text boxes and where i give two values.As soon as i click find only one text box appears and another one disappears. Here is my code.



    if(op.value == 2){
           alert("value is 3");
            document.getElementById('test_name').style.display="";
          //valueOfop(op);
        }else{
           document.getElementById('test_name').style.display="none";
        }

 only for a particular option i have to show two text boxes and hence i cannot remove the else part. Any suggestions to retain the value of the text box ?