How to selected then given values in multi select in MVC

Jan 5 2018 3:42 AM
How to selected then given values in multi select in MVC using jquery?
 
<select style="width:100%" class="select" id="Days" name="Days" multiple="multiple"> <option value='Sunday'>Sunday</option> <option value='Monday'>Monday</option> <option value="Tuesday">Tuesday</option> <option value="Wednesday">Wednesday</option> <option value="Thursday">Thursday</option> <option value="Friday">Friday</option> <option value="Saturday">Saturday</option> </select>
 
After select few values and stored backend. it's working,
 
my problem: when I try to retrieve the value to bind in select box
 
but can't selected
 
What I have tried:
var days='Sunday'; $('#Days').val(days);

Answers (3)