• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jsp and jqeury onchange event for select box

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am fetching data from data base for filling select box option . i wanna fill select box option auto matically after selecting any of option of previous select box. first select boox containing the state name , and select select box containing city name . this city name fill on behalf of witch state is selected .
this is small coding od my registraion page..



please help thank how to do it in jsp jquery
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First of all, I need to point out that your code is showing some very bad practices. Putting Java code in a JSP, especially database code, is a practice that has been discredited for 10 years now, since 2002! It's far past time to update your JSP knowledge with the JSTL and JSP.

What you are asking is a common requirement and you can search for previous questions on this subject.

As you are using jQuery, you can even get some free sample code by downloading the example code for my book for free here. Look for the "bootcloset" folder in the code for chapter 8.
reply
    Bookmark Topic Watch Topic
  • New Topic