<div id="divCheckAll">
<input type="checkbox" name="checkall" id="checkall" onClick="check_uncheck_checkbox(this.checked);" />Check All</div>
<div id="divCheckboxList">
	<div class="divCheckboxItem"><input type="checkbox" name="language" id="language1" value="English" />English</div>
	<div class="divCheckboxItem"><input type="checkbox" name="language" id="language2" value="French" />French</div>
	<div class="divCheckboxItem"><input type="checkbox" name="language" id="language3" value="German" />German</div>
	<div class="divCheckboxItem"><input type="checkbox" name="language" id="language4" value="Latin" />Latin</div>
</div>
function check_uncheck_checkbox(isChecked) {
	if(isChecked) {
		$('input[name="language"]').each(function() { 
			this.checked = true; 
		});
	} else {
		$('input[name="language"]').each(function() {
			this.checked = false;
		});
	}
}

Comments

  1. Kathi Wollen

    Congratulations on your incredible gift for writing! Your article is an engaging and enlightening read. Wishing you a New Year full of achievements and happiness!

Sccukd için bir cevap yazın Cevabı iptal et

E-posta hesabınız yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

Şu HTML etiketlerini ve özelliklerini kullanabilirsiniz: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>