jquery - jsp select option dynamically from a database -
i have table called students
in mysql database in class, student name,...etc., exists.
i want use select options in jsp such if , if class selected first, after selecting class, student names of particular class should displayed in select drop down automatically(dynamically) retrieving records database.
here want use servlet database connection , access database records through jsp getattribute()
<select>class <option>1</option> <option>2</option> ..... </select> <select>student <option>1</option> <option>2</option> ..... </select>
use ajax call retrieve data when change "class" combobox (pass class name 1st combobox) , populate 2nd student combobox returned data.
Comments
Post a Comment