<select id="drpType" name="drpType" class="form-control" onchange="TypeChange();">
<option value="0">--select--</option>
<option value="Adhoc">Adhoc</option>
<option value="Dedicated">Dedicated</option>
</select>
<script type="text/javascript">
function TypeChange()
{
var selectedItem = $("#drpType option:selected").val();
$("#drpType > [value='" + selectedItem + "']").attr("selected", "true");
}
</script>
<option value="0">--select--</option>
<option value="Adhoc">Adhoc</option>
<option value="Dedicated">Dedicated</option>
</select>
<script type="text/javascript">
function TypeChange()
{
var selectedItem = $("#drpType option:selected").val();
$("#drpType > [value='" + selectedItem + "']").attr("selected", "true");
}
</script>
No comments:
Post a Comment