simplicityFacetedSelect

Dynamic options and counts.

To enhance a <select> to automatically populate it from the search results, first create the select.

<select name="example">
    <option value="">Any...</option>
</select>

Then apply the simplicityFacetedSelect widget to it.

$('select').simplicityFacetedSelect();

Example

        

Change the optionTemplate in 2 or the search response in 3 and see how the available options in 1 are updated. Note how selections in 1 are preserved across updates.