Hi,
I am having the Html as
<ul>
<li id="listSize" style="display: block;">
<label class="topspace">Field Size:</label>
<select id="fieldSize" name="fieldSize" >
<option >Choose a size </option>
<option value="small">Small</option>
<option value="medium">Medium</option>
<option value="large">Large</option>
</select>
</li>
<li id="listPhoneFormat" class="right half" style="display: none;">
<label class="topspace">Phone Format</label>
<select id="fieldSize" name="fieldSize">
<option selected="selected" value="phone" id="fieldPhoneAmerican">### - ### - ####</option>
<option value="europhone" id="fieldPhoneEuro">International</option>
</select>
</li>
<li id="listOptions" style="display: none;">
<label class="topspace">Options:</label>
<input id='required' name="required" type='checkbox'>Required</input>
</li>
<li id="listInstructions" style="display: none;">
<label class="topspace">Instructions for User </label>
<textarea cols="40" id="instructions" name="instructions" rows="20" style="width: 98%; height: 70px;"></textarea>
</li>
In my JQuery i am retriving the value of the Dropdown select by
<script type="text/javascript">
$(document).ready(function(){
$('#fieldSize').fieldValue();
});
</script>
where i am using the Form plugin
it shows the correct value only i kept the li with id="listSize" as an first option And if i kept it below as the last li or in between it didnt works ..Why so??
Also How to make one li to display:none and display:block on some actions by JQuery???