开发者

get value using jquery

开发者 https://www.devze.com 2023-02-24 05:27 出处:网络
i want to get value of h:outputText label using jquery, for <h:outputText 开发者_开发技巧id=\"cal_att_to_date\"

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

精彩评论

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