Link to home
Start Free TrialLog in
Avatar of ITsolutionWizard
ITsolutionWizardFlag for United States of America

asked on

mvc post from select c#

when the onchange is occurred,
how can i send the selected value to the controller for other processing?
<select class="select2" id="bondState" name="bondState" onchange="fnSaveSingleData(this.name,'1')" data-placeholder="Choose Bond State...">
                                    <option value=""></option>
                                    @foreach (var item in Model.stateList)
                                    {
                                        <option value=@item>@item</option>
                                    } 
                                </select>

Open in new window

Avatar of louisfr
louisfr

Are you using jQuery?
Avatar of ITsolutionWizard

ASKER

No. Can u show me in JavaScript or mvc code behind?
ASKER CERTIFIED SOLUTION
Avatar of louisfr
louisfr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial