i have code uses jquery 1.4
if (td.data().appointments === undefined) td.data().appointments = [event]; else td.data().appointments.push(event);
i want update jquery 1.9 data() method not workig in 1.9 ,
if replace data attr push (appointments.push(event)) not working
any alternative fix problem.
thanks
try passing appointments
in parameter key data() instead of using property,
syntax .data( key )
if (td.data("appointments") === undefined)
Comments
Post a Comment