i have these inputs:
<p class='zero'> <? echo $row['perigrafh10']?><input id='zeroin' type ='Text' value ='<? echo $row['poso10']?>' name='poso10'><input class='check' id='check' type='checkbox' <? if ($row['poso10_check'] >=1) {echo 'checked="checked"';}; ?> name='check_list[]' value='<? echo $row['poso10_check']?>' /></p>
<p class='zero'> <? echo $row['perigrafh11']?><input id='zeroin' type ='Text' value ='<? echo $row['poso11']?>' name='poso11'><input class='check' id='check' type='checkbox' <? if ($row['poso11_check'] >=1) {echo 'checked="checked"';}; ?> name='check_list[]' value='<? echo $row['poso11_check']?>' /></p>
....
what i want to achieve is to hide the textbox and the checkbox if the textbox text is 0.00.
i can hide the textbox without issues using this code:
<script type="text/javascript">
$('input:text').each(function(){
if($(this).val() == 0.00){
$(this).hide();
}
}
);
</script>
but i have no luck to hide the checkboxes too. What code do i need? i ve done several tests but couldnt find solution. i m using latest jquery.