I am new to AJAX. I have a requirement, where I have a page coded in JSF. On the page I have a dropdown and a textbox. When user selects a car from the dropdown, the value for the selected car should be displayed in the text box. The dropdown and the text box value, both are populated from the DB.
What I am trying to do currently is - when user selects a car from dropdown, onChange event I am calling this function below: