I would like to retrieve the name of a class from a TD
, follow my code.
var dateSelectClick = $(target.element.text);
console.log(dateSelectClick);
return of this is n.fn.init {}
I would like to return a string with the name of the class eg
day calendar-day-2016-03-27 calendar-dow-0
I'll explain it better,
I have a value in a TD and I need to recover it, it's a calendar and every date I click on the calentario there is a different class on each date, I need it, when I click on that date, I can recover the month and year of the day I clicked, I have the following return executing this code.
In short, I need to retrieve that date appearing on the console, but I can not get what I need to know how to do =)
var dateSelectClick = $ (target); console.log (dateSelectClick);
follows a print with the return of the console.