I was making a Webpage.
I have to use onClick() function in <SELECT><OPTION> statement.
Purpose is when i click on any value in LIST, it must show data extracting from DB to screen
when i put onClick() in <Option> statement, then it works on Firefox but not on IE7 and IE8
When i put onChange() in <select> statement, then it woks on both, and i want this, and problem is there. kindly read further
to solve either i can use servlets, but i do not want to generate dynamic page all the time.
Please be sure to use code tags when posting code to the forums. Unformatted or unindented code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please click this link ⇒ UseCodeTags ⇐ for more information.
Properly indented and formatted code greatly increases the probability that your question will get quicker, better answers.
You should use good habits all the time. Not just later. Scriptlets have been discredited for over 8 years now. You should be using the JSTL and EL in your pages.
Joined: Jul 07, 2009
so you want me to shift on JSTL n EL rather then using this eight year(old is gold) way? ok i will shift, but not now
sir solve this first.
i do not want to use AJAX
ALSO ANSWER WHY onCLICK() is not working in IE7 or 8