Thursday, 17 November 2016

javascript - Populate text field based on the selected drop down value

I have the following PHP Code that outputs the query result (which is simply a mapping of a Product Name and its corresponding unit price) to a JSON file. The PHP code also populates the drop down list.



I have no problem in creating the JSON file and populating the drop down list. My main concern is this:



When the user selects a Product Name from the drop down list, how do I auto-populate another text field to display the Product's corresponding unit price?















No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...