-6
rated 0 times
[
1]
[
7]
/ answers: 1 / hits: 14391
/ 11 Years ago, tue, january 14, 2014, 12:00:00
I'm trying to hide and show the password of the user but I'm having a hard time. Here is my markup:
<td>Username: <td>
<td><input type=text class=form-control value=<?php echo $row['Username'];?>readonly><td>
<td><input type=button class=btn btn-primary show value=Show Password>
<input type=button class=btn btn-primary hide value=Hide Password style=display:none;><td>
</tr>
<tr class=password style=display:none;>
<td>Password: <td>
<td><input type=text class=form-control value=<?php echo $row['Password']; ?> readonly><td>
</tr>
And my jQuery
$(.show).click(function(){
$('.hide').show();
$('.show').hide();});
More From » jquery