Wednesday, March 14, 2012

Select All Check Box on clock

Imperative
Object-Oriented
Functional

Select All

Code : 


<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

<script type="text/javascript">

$(document).ready(function()
{
$("#selectAll").click(function()
{
var checked_status = this.checked;
$("input[name=checkBoxName]").each(function()
{
this.checked = checked_status;
});
});
});

</script>

<input type="checkbox" name="checkBoxName" value="Imperative">Imperative<br>
<input type="checkbox" name="checkBoxName" value="Object-Oriented">Object-Oriented<br>
<input type="checkbox" name="checkBoxName" value="Functional">Functional<br><br>

<input type="checkbox" id="selectAll">Select All<br>

No comments:

Post a Comment

If you Satisfied , Please Leave a comment