我想隱藏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