Reputation: 287
I want the user to be able to select an option, which would change the value of an input text field. It should load the value from PHP+MYSQL depending on the option.
Basically, getting option value, pushing to a php file to get a return on value for the input text field
Any tips would be greatly appreciated.
Upvotes: 0
Views: 1571
Reputation: 126
You could use jQuery to send a post request with the selected option, and then return some JSON data which could then be placed into the input field.
http://api.jquery.com/jQuery.post/
Upvotes: 1