rendered paste body<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type='text/javascript' src="res/js/jquery.js"></script> <script type='text/javascript'><!-- function init() { $("#check").click(function(event) { log('checked attr =' + $(this).attr('checked')); }); $('#button').click(function() { $('#check').click(); });}function log(text) { $("#log").append("<div>" + text +"</div>");}$(init); // --></script> </head> <body> <label><input id='check' type='checkbox' name="plop"/>Test checkbox</label> <input type='button' value='check the box' id='button'/> <div id='log'></div> </body></html>