i want to get value of h:outputText label using jquery, for
<h:outputText 开发者_开发技巧id="cal_att_to_date"
binding="#{Attendance_Calculation.cal_att_to_date}">
<f:convertDateTime type="date" pattern="dd-MMM-yyyy" timeZone="GMT+5:30"/> </h:outputText>
var value = $('#cal_att_to_date').text();
It should be
$('#cal_att_to_date').text();
although i would be more sure, if you displayed the rendered HTML that your code produces.
精彩评论