0
I have the following code snippet:
$(".item2").hide();
$("#show").chick(function(){
$(".item2").show();
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<table border="1">
<tr>
<td>Item1</td>
<td class="item2">Item2</td>
</tr>
</table>
<br/>
<input type="button" value="show" id="show" />
Note that by clicking the item2
should be displayed but has not worked. Why this occurs and how to resolve?
@jedaiasrodrigues Please review the code first!
– Igor Mello