jQuery dropdown hide show div based on value
HTML
<select id="reasonDropDown" name="Select">
<option>Select One</option>
<option>Select Two</option>
<option>Select Three</option>
<option value="other" id="other">Other</option>
</select>
<div class="otherReasonTextBox">Other Reason Textbox</div>
CSS
.otherReasonTextBox {
display:none;
}
JavaScript
$(document).ready(function (e) {
$('#reasonDropDown').change(function () {
if ($(this).val() == 'other') {
$('.otherReasonTextBox').show();
} else {
$('.otherReasonTextBox').hide();
}
});
});