I have a SharePoint jquery form that I use in a CEWP and one of the elements on the form is a Multi Selecion element, which is a drop down list that allows for multiple selections. Ex:
<select name="cars" multiple>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="opel">Opel</option>
<option value="audi">Audi</option>
</select>
The element needs to be pre-selected with data from a SharePoint list. I have a column called cars and the data is comma dilimited (ex: Saab,Audi).
So, using spservices and jquery, how do I pre-select the element with "Saab" and "Audi"? Here's what I have in jsFiddle: http://jsfiddle.net/rXGmc/ I then need to apply it to sharepoint. Thanks for any help or insight you can provide.