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>

Comments

Popular posts from this blog

Call PHP Function In JavaScript Using Ajax

List of Post Category Wise in wordpress