how to clear the dropdownlist values on button cick event? using jquery

Posted by kumar on Stack Overflow See other posts from Stack Overflow or by kumar
Published on 2010-06-06T17:14:06Z Indexed on 2010/06/06 17:22 UTC
Read the original article Hit count: 243

Filed under:
 <label for="ResolutionCode">
            Resolution:
            <span>
           <%=Html.DropDownListFor(model => model.ResolutionCode, new SelectList(Model.LookupCodes["C_EXCPT_RESL"], "Key", "Value"))%>
            </span>
        </label>
         <label for="ReasonCode">
            Reason:
           <span><%=Html.DropDownListFor(model => model.ReasonCode, new SelectList(Model.LookupCodes["C_EXCPT_RSN"], "Key", "Value"))%></span>
        </label>
         <label for="ActionCode">
            Action Taken:
           <span><%=Html.DropDownListFor(model => model.ActionCode, new SelectList(Model.LookupCodes["C_EXCPT_ACT"], "Key", "Value"))%></span>
        </label>
    </div>
    <div class="fiveper">
        <label for="FollowupDate">
            Follow-up:
            <span class="datepicker-container"><input type="text" id="exc-flwup" name="FollowupDate" /></span>
        </label>
        <label for="IOL">
            Inquiry #:
            <span><input type="text" id="Inquiry" name="IOL" /></span>
        </label>

I am able to clear the Input box and textare on click event something like this

$('#exc-flwup').val('');

how to clear the dropdownlist values?

thanks

© Stack Overflow or respective owner

Related posts about jQuery