Reputation: 47
I am wanting to have a set of interdependent fields of type: 1. Select 2. Select 3. Disabled Textbox
The issue is I am using AdminBSB which has a few design parameters that the CMS that I am using does not allow to use. I am using CouchCMS.
Can a custom code be created that does not involve data-* attributes? Just using the id attribute and jQuery/javascript.
I am looking for something like:
<select name='student_name'>
<option>Student 1</option>
<option>Student 2</option>
</select>
<select name='month'>
<option>Jan</option>
<option>Feb</option>
<option>...</option>
<option>Dec</option>
</select>
<input name='fees' type='text' readonly />
jsFiddle: to explain what is to be achieved
Now when Student 1 is selected Month dropdown should activate and when a month is selected its corresponding fees should be displayed in the textbox. Data population is not what I am looking for. I just look forward for a working design to start with.
Upvotes: 0
Views: 69