Another bind question
Another developer I work with has a form that has a few selects, a few checkboxes/radio buttons, and two input text fields for dates. All of the selects are being dynamically generated from queries. All but one of the selects will stay the same; one will change depending upon what values are in all of the other elements.
Initially, that one changing select was bound to either @11606534 or @11017538 of all the other fields, so that if anything changed, it's options are re-generated. But we wanted granular control over form validation (just to make sure the dates are proper format and the second date HAS to be after the first date) so I'm trying to bind the select to a javascript function that will validate the dates - if everything is in order, call the CFC that populates the changing select; otherwise, throw an alert and prevent the event.
So the function is running the SQL statement and returning results, but I just realized that I don't know how to repopulate the options in the one select without reloading the page. Is there a way to have the options regenerated from JavaScript without reloading the page?
Thanks,
^_^