gjshah7254
3/2/2014 - 11:18 PM

Javacript / jQuery / Basics

Javacript / jQuery / Basics

<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script type="text/javascript">
  (function($){
    
  })(jQuery);
</script>

$(document).ready(function() {

$(document).live("click", function () {

$("body").on("click", function (event) {

$("body").on("change", function (event) {	    
$('input').each(function () {
    $(this).val();
});
//check if a checkbox is checked or not
$('#checkbox').is(':checked');

//Tick/untick a checbox 
$('.myCheckbox').prop('checked', true);
$('.myCheckbox').prop('checked', false);