Hi,
I have a table in a database Table1(ID, name, status), I want when the page load, a form appear with a dropdown ,a text field, and a submit button.
the dropdown got populated from server side with data (<option value="ID">name</option>) .
want when the user select a name from the dropdown, the name will be copied in the text field, after changing the name and pressing the submit button, the table in the DB will be submitted, and the drop down will show new data.
the server side is easy (
java servlet, rest or a
struts action), it will be a URL in ajax in the front end.
please help me writing the js or jquery to achieve this.
Thanks