JavaScript document.getElementById problem
843844Jan 4 2008 — edited Jan 4 2008In 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