To achieve Power Pages code that is portable from your Model Driven App forms to Power Pages it would be nice to have the MDA Client API available in Power Pages. But sadly it is not there yet, but we will try to make it happen!
In this video we will extend with the common method of addOnChange to allow reacting to user input!
Repository Link: https://github.com/Kunter-Bunt/PowerPagesClientAPI
Check it out here.