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
use "class" instead of className
$('', { "class": 'test', text: "a div", click: function(e){ e.preventDefault(); alert("test") }})