Reputation: 391
I want to check all the check boxes which are in div tag My code is as below.
<div id="cBoxes">
<li><input class="radio" name="list" id="list" type="checkbox"
value="<?php echo $resultPages['id'];?>"></li>
</div>
I have put this whole code in for loop with php tag. Is there any way to accomplish this task.
Upvotes: 0
Views: 109
Reputation: 150
See the checked
attribute:
<div id="cBoxes">
<ul>
<li><input class="radio" name="list" id="list" type="checkbox"
value="<?php echo $resultPages['id'];?>" checked="checked"/></li>
</ul>
</div>
Upvotes: 2