Dom Created - Cant Attach Event
Join the DZone community and get the full member experience.
Join For Free// description of your code here
function yearAdd(){
$.log("add");
}
dayDel = function dayDel(t){
$.log(this);
$.log(t.target);
$.log('del');
}
$(document).ready(function(){
var b = $("x").click(dayDel);
$("div.day").append(b);
// b = $("+").click(yearAdd)
// $("div.year center").append(b);
});
Event
Opinions expressed by DZone contributors are their own.
Comments