Validation Select with Spry Data

This page demonstrates how to set up a Select Form Validation widget that works with Spry Data.
As with all widgets that use Spry Data, the data refreshing wipes out the widget functionality. Therefore, after the data updates in the region, the widget constructor needs to be rerun. There are 2 ways to do that.

One is to include the widget constructor script is put INSIDE the spry:region. Spry recognizes scripts within regions and automatically runs them after the data is loaded.

The other way it to set an observer on the region and run the constructor onPostLoad.