hi
i am using jsp, in that one i used search box with 'id' i want to read that id to javascript file... but document.getelementbyid() is not working...
hi
i am using jsp, in that one i used search box with 'id' i want to read that id to javascript file... but document.getelementbyid() is not working...
Java/JSP runs at server machine and produces a HTML/CSS/JS page. Javascript runs at the client side and knows nothing about Java/JSP/whatever code which runs at the server side. Open the page in webbrowser, rightclick and choose View Source. You see, no single line of Java/JSP code (if it has done its job right). Also see this article.
Your problem is more in the Javascript/HTML corner. Since it's unclear what exactly you mean with "not working" (you're more talking in end-user perspective than in real developer's perspective), I suggest to get yourself through some basic tutorials first to get the concepts and the basic terminology right so that you can ask better questions here. There are decent basic tutorials/references at w3schools.com: Javascript and HTML DOM.