I have a muilti select combo box like below.
i need to store all the select items like this string Very Cold :+: Very Hot
<select name="MilkShake" id="MilkShake" onchange="changeselectItems(this,'MilkShake');">
<option value="Very Cold">Very Cold </option>
<option value="Very Hot">Very Hot </option>
<option value="Med Size">Med Size </option>
<option value="Large Size">Large Size </option>
<option value="1 by 2">1 by 2 </option>
<option value="1 by 4">1 by 4 </option>
<option value="2 by 3">2 by 3 </option>
<option value="Glass">Glass </option>
</select>
i have tried using this function
function changeselectItems(ref,miniproname)
{
var ref = ref.value;
var newf = Array();
alert(ref);
for(var i=0;i<newexampleitem.length;i++)
{
newf['sel'] = ref[i];
}
}
You can use something like this
HTML
JS
Working DEMO