p:calendar and javascript value [SOLVED]
Posted: 21 Jan 2011, 00:29
I am trying to get the value of a Calendar into a javascript function but it is not working. I can get a value from a h:selectOneMenu on the same page. Can anyone tell me if this is possible?
Code: Select all
var test = document.getElementById("form1:statusDate").value;
<h:form id="form1">
<p:calendar value="#{propDetail.prop.propStatusDate}" id="statusDate" />
</h:form >