I have array of select box and array of text area with same id and class.
<div class="reasons">
<select id="reason" class="reason_select" name="reason[]">
<option>Please Select</option>
<option value="misc">Misc</option>
</select>
<textarea id="reason_comment" name="reason_comment[]" disabled="disabled/>
<select id="reason" class="reason_select" name="reason[]">
<option>Please Select</option>
<option value="misc">Misc</option>
</select>
<textarea id="reason_comment" name="reason_comment[]" disabled="disabled/>
<select id="reason" class="reason_select" name="reason[]">
<option>Please Select</option>
<option value="misc">Misc</option>
</select>
<textarea id="reason_comment" name="reason_comment[]" disabled="disabled/>
</div>
In these three pairs, on change of any of the select box I need to enable there corresponding textarea.
$(document).on("change", ".reason_select", function(){
//not getting where to start and how to identify corresponding textarea.
});