السلام عليكم
يا إخوان أنا أصمم web page تحتوي على 2 drop down list
بحيث الdrop down الأول يحتوي على الدول
و الثاني يحتوي على اسماء المناطق
فأريد أن أكتب الكود بالJava Script و الjsp
عندما يختار الuser الدولة في الdrop down الثاني تظهر أسماء المناطق المتعلقة بالدولة فقط
فهل توجد الأمثلة .... و شكرا
و هذا نص الكود
- <%
- String connectionURL3 = "jdbc:oracle:thin:@21.1.1.5:15321:developer";
- Connection connection3 = null;
- Statement SQL_Statement3=null;
- ResultSet SQL_Result3 = null;
- Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
- try {
- connection3 = DriverManager.getConnection(connectionURL3, "scott", "tiger");
- SQL_Statement3=connection3.createStatement();
- String queryString3 = "Select distinct(State) from Count where country = "'+count
ry+'"%"; - SQL_Result3=SQL_Statement3.executeQuery(queryString3);
- {
- %>
- <option value="<%=SQL_Result3.getString("state")%>"><%=SQL_Result.getString("stat
e")%></option> - <%
- }}
- catch(SQLException e){
- }
- %>