我想隐藏td
如果input
value
是0
但我不能得到它的工作?隐藏与jQuery基于输入值
http://jsfiddle.net/zxpsd8x6/1/
<td><input type="radio" name="hideifvalue0" value"0"></td>
<td><input type="radio" name="hideifvalue0" value"1"></td>
<button class="btn1">Hide</button>
<button class="btn2">Show</button>
<script>
$(document).ready(function(){
$(".btn1").click(function(){
$("td").hide();
});
$(".btn2").click(function(){
$("td").show();
});
});
</script>
这个网站是无效的。 Td应该是tabla的孩子,tr – 2014-09-23 14:05:34
它应该是'value =“0”'not'value“0”'。你在寻找这个http://jsfiddle.net/j08691/zxpsd8x6/9/? – j08691 2014-09-23 14:07:28
http://jsfiddle.net/zxpsd8x6/12/ – Nils 2014-09-23 14:10:40