7
$ (this) .val () não funciona para obter texto de span usando jquery
Fornecendo este html, quero pegar "August" dele quando clicar nele: <span class="ui-datepicker-month">August</span> eu tentei $(".ui-datepicker-month").live("click", function () { var monthname = $(this).val(); alert(monthname); }); mas não parece estar funcionando