I\'m trying to create a div and give him a class but it doesn\'t work. Could anybody help me?
$(document).ready(function() { $(\'input[type=checkbox]\').each(fun
$('input[type=checkbox]').each(function() { $(this).after('').addClass('test') .filter('div').html('a div') .click(function() { alert('Handler for .click() called.'); }).end() .appendTo('this'); });
Should work :)