how to operate on select box using ajax in struts2?

how to operate on select box using ajax in struts2?

I am doing a project on struts2 in which i have a jsp page which has two select boxes like

<s:form action="">
    <s:select id="d" name="dist" onchange="block();" list="dist_list" label="District" headerKey="-1" headerValue="--Please Select--"></s:select>
    <s:select id="b" name="block" list="block_list" label="Block" headerKey="-1" headerValue="--Please Select--"></s:select>
    <s:submit></s:submit>
    </s:form>

Now i want to use ajax so that when i select a district value it will retrieve me all the blocks under it by assigning to the block list select box.

so please help me..its urgent ... thanx in advance...

View Answers









Related Tutorials/Questions & Answers:
how to operate on select box using ajax in struts2?
how to operate on select box using ajax in struts2?
Advertisements
How to implement ajax in struts2 to operate on select box in jsp
how to implement ajax in struts2 to operate on selectbox in jsp
Passing Multi select list box values using ajax to get values to dependent list box
Dynamic select box - Ajax
How to get data from DB in to Text box by using Jsp & Ajax
Auto Search box using ajax
how to fetch the record using AJAX? - Ajax
autosuggest box - Ajax
select box and text box validations
how to display(update) current date and month in select box on selecting the year.
i want to select a multiple value of check box by using onclick or onchange event without using from submission
using jsp's....and ajax - Ajax
How to perform search using AJAX?
Not Able to select an Item in Spark Combo Box control (Adobe Flex Object) using QTP
Select Box question
Using Ajax
How to write a select box and id should be stored in database?
Select Box Validation in JavaScript
add text box and select list dynamically and get its value to store it into database using jsp request parameter
Combo Box Using Ajax In JSP
how to create a text box using awt
auto complete text box - Ajax
Multiple select box
To display suggestions in a text box - Ajax
dynamic select box
dynamic select box
How to give value for select in HTML dynamically using javascript
How to retreive data by using combo box value - JSP-Servlet
How to retrieve data by using combo box value in jsp? - JSP-Servlet
How to add another option to the select tag using struts2 tag - Struts
How to retrieve data by using combo box value in jsp? - JSP-Servlet
How to show autocomplete textbox values on combo box option selection using database?
How to retreive data by using combo box value - JSP-Servlet
How to add google page in my webpage using jquery ajax.
how to get popup fro servelt to jsp by using ajax........
How to select only .txt file to be zipped using java?
How to change value of div using Ajax in struts.
select query using hibernate
how to generate reports from oracle database using jsp and ajax code
How to retrieve data by using combo box value in jsp? - JSP-Servlet
How to retrieve data using combo box value in jsp? - JSP-Servlet
How to save form data to a csv file using jquery or ajax
how to get popup fro servelt to jsp by using ajax........
Multiple select dropdown with Ajax
Ajax using jsp
ajax using jsp
How to Validate dynamically created text box in HTML using Javascript
how to display data from mysql table in text box using jsp??

Ads