i have a select field and a textarea one. And i am trying to hide/show the textarea in function of the select type i make:
<select id="select" name="management">
<option value="0" selected="">Select One</option>
<option value="1">Yes</option>
<option value="0">No</option>
</select>
<textarea id="textarea" name="searching_gig_des" wrap="VIRTUAL" cols="50" rows="5"></textarea>
var textarea = $('textarea');.
var select = $('#select').val();
textarea.hide();
if (select == '1'){
textarea.show();
}
if (select == '0'){
textarea.hide();
}
or jsfiddle
any ideas?
thanks