PDA

View Full Version : Problem with default value in the inputBox



user123
Oct 21st, 2008, 08:41 AM
hi all,

I have problem regarding the default value in the input box
it doesnt visible when page is loaded.
see the code.

<table border="1">
<tr>
<td>
<div id ="uni" style="display:none">
<table border="1">
<tr>
<td><input type="text" name="uni_uname" value="my1"></td>
<td><input type="password" name="uni_pass" value="my1"></td>
</tr>
</table>
</div></td></tr>
<tr ><td>
<div id="bi" style="display:none">
<table border="1">
<tr>
<td><input type ="text" name="bi_i_uname" value="my1" ></td>
<td><input type="password" name="bi_i_ipass" value="my1"></td>
</tr>
<tr>
<td><input type ="text" name="bi_o_uname" value="my2" ></td>
<td><input type="password" name="bi_i_ipass" value="my2"></td>
</tr>
</table>
</div>
</td>
</tr>
</table>

and i also have dropdown <select> box ,within that two options are there
one is unidirection and other is bidirection authentication .

when i select unidirection option from that external script is called and <div id="uni" >
is visible and <div id="bi" >is hide .
if <bidirection> then vice versa.

whithin that external script i have used the

style.display="block";

but i have problem in default value in "bi_o_uname " and "bi_o_pass" input box
when page is loaded that values are invisible,but in the source that values are there.

does anyone know why this happens?

Thanks.

Yay
Oct 21st, 2008, 05:44 PM
Safari?