Hi,
pass the form and use it in java script, and if you are using master page then use the prefix of content place hoder and form your problem will be solved...
I didnt understand , when you mentioned "pass the form".
THe code I have is :
- function checkScheduledDate()
-
{
-
var scheduledTime = document.getElementById("starttimeScheduler");
-
if(scheduledTime == null)
-
{
-
return false;
-
}
-
}
-
-
<h:form>
-
...
-
<t:div id="contents_starttime_div" styleClass="contents" style="border:none;">
-
<t:inputText id="starttimeScheduler" value="#{scheduledJobCreateEdit.startTimeDate}" style="width:165px; margin-left: 25px;" forceId="true" tabindex="112">
-
<f:convertDateTime pattern="#{cal['jsfcalendar.pattern']}" locale="#{facesContext.viewRoot.locale.language}"/>
-
</t:inputText>
.....
Now in my javascript function, I want to retrieve the value present in the input text at the time of form submission. So, I am calling the javascript function on submit, but the function always returns null on document.getElementById().
Please help me out here.