how to validate the HtmlDropdown

Feb 17, 2016 at 2:02 AM
Hi everybody
please am trying to design my first web in activevfp but i am stuck as how to validate the HtmlDropdown so that after selecting the record i can pick the product code and open the price table to determine the price and place it in price textbox
Feb 22, 2016 at 10:05 PM
You have to listen to the onChange event on the SELECT element:

If you are using jQuery:
$("#myDrowpDown").on("change", function() {
 /* put your code here */
If you are not using jQuery:
document.getElementById("myDropDown").onChange(function() {
 /* put your code here */
Or direcly on the HTML markup (not recommended):
<select onChange="myFunction();">
Victor Espina