开发者

get value using jquery

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜