I have a dropdown which is pretty simple.
<div>
<select id="optionDropDown">
<option value="volvo">{@pre type="content" key="dropdown.option1"/}</option>
<option value="saab">{@pre type="content" key="dropdown.option2"/}</option>
<option value="mercedes">{@pre type="content" key="dropdown.option3"/}</option>
<option value="audi">{@pre type="content" key="dropdown.option4"/}</option>
</select>
</div>
I need to modify the UI whenever the user changes the selection in the dropdown. I will have to add a another <p> with the description of that particular car.
At present I am doing this using jQuery, but would love to know if there are some inbuilt ways to do this in Dust.js by modifying the context or any other way.
You can still achieve the same using dust templates
Here is the full example gist