I'm using jQuery Mobile and I have a select box with yes and no as the options. I want a text input field to display when they select yes and it to disappear when they select no.
<fieldset data-role="controlgroup">
<label for="joint">Is this a joint gift?</label>
<select name="slider" id="joint" data-role="slider">
<option value="no">No</option>
<option value="yes">Yes</option>
</select>
<div id="enter_joint">
<label for="other_joint">Spouse Name:</label>
<input name="other_joint" id="other_joint" value="" data-theme="d" />
</div>
</fieldset>
I want to have use jQuery to only display #enter_joint when the select is set to Yes.