<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">
</script>
</head>
<body>
<script type="text/javascript">
$(document).ready(function(){
function toggleChecked(status) {
$(".checkboxes input").each( function() {
$(this).attr("checked",status);
})
};
});
</script>
<input type="checkbox" onclick="toggleChecked(this.checked)"> Select / Deselect All
<div class="checkboxes">
<input type="checkbox" name="value[]"value="1">
<input type="checkbox" name="value[]"value="2">
<input type="checkbox" name="value[]" value="3">
</div>
</body>
</html>
This post has been edited by polska03: 22 August 2011 - 05:05 PM

New Topic/Question
Reply



MultiQuote



|