Looking for advice on how to trigger an action class using JavaScript when a value is selected from a drop-down menu. The goal is to fetch data from a database and then update a table within a specific div without refreshing the entire page.
The drop-down menu code:
<s:select name="newQuestion.CertificationId" list="certificationList"
listKey="certificationId" listValue="certificationName" headerKey=""
headerValue="Select Certification" label="Certification Name"
onchange="getQuestionsList(this.value)" />
The Javascript function:
function getQuestionsList(val) {
alert("Here" + val);
}
The ultimate goal is to use AJAX calls to dynamically populate a hidden div based on the selected values in the drop-down menu.