First of all, thanks to the backbone-forms guys who created a tool that integrates perfectly with backbone.js frameworks.
I am using backbone.js with the main forms plugin, but I need to make conditional fields.
Say I have the following form. I want to show (or not) a single string input with text or text field according to the value selected in select
.
<form method="post" action=""> <select > <option value="" selected="selected">choose one</option> <option value="1" >line</option> <option value="2" >area</option> </select> <input id="element_1" /> <textarea id="element_2" ></textarea> </form>
Is a behavior like this executed by default in the trunk?
If not, how can I implement it using javascript and backone-forms?
thanks.
source share