193
rated 0 times
[
196]
[
3]
/ answers: 1 / hits: 65936
/ 10 Years ago, thu, march 6, 2014, 12:00:00
I have this code to show <tr>
in my table but with every click, it hides the textbox that must be shown when the button is clicked.
Below is my jQuery
code to show the textbox:
$(function() {
$('#btnAdd').click(function() {
$('.td1').show();
});
});
And this is my code in <table>
:
<button id=btnAdd name=btnAdd onclick=toggle(); class=span1>ADD</button>
<tr class=td1 id=td1 style=>
<td><input type=text name=val1 id=val1/></td>
<td><input type=text name=val2 id=val2/></td>
</tr>
More From » jquery