Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JavaScript document.getElementById problem

843844Jan 4 2008 — edited Jan 4 2008
In my Jsf page i have....

<h:inputText id="popup_container" value="#{FileBean.selectedRow.createDate}"></h:inputText>

and from a javaScript function i am trying to get the element using document.getElementById('popup_container'));
But i am not getting the element. After running the application from the source view i have seen......

<input id="j_id_jsp_2097022276_1:popup_container" type="text" name="j_id_jsp_2097022276_1:popup_container" />

Here id has been changed. Then how can i get the element ?

Any suggestion or help ?

Thanks!
-dev_123
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 1 2008
Added on Jan 4 2008
2 comments
204 views