I know this question was posted many times but I can't understand my problem :
When I do :
alert($('#CalendarType').className);
I keep getting undefined in the alert, at start by searching on the web I thought it was because my div wasn't already load but I tried something else :
alert($('#CalendarType').html());
And this work.... I can't understand . If someone can explain me what I did wrong