$('checkbox').on('change', 'checkbox', function(event) {
setAttrValue('1', $(this).val());
});
$(document).on('click', function(event) {
if(!($(event.target).closest(element).size() > 0 || $(event.target).is(element))) {
console.log('Click outside');
} else
console.log('Click inside on',event.target);
});
$(document).on("ajaxSend", function() {
console.log("I SEE AJAX!");
});
console.log(window.location.pathname);
$( "#success" ).load( "/not-here.php", function( response, status, xhr ) {
if ( status == "error" ) {
var msg = "Sorry but there was an error: ";
$( "#error" ).html( msg + xhr.status + " " + xhr.statusText );
}
});