I want to keep the selected values after I submit the form. My code works fine when I select only one value. It does not keep all values, when I select multiple values all at once. Please help.
<select name="education" id="education" multiple="multiple">
<option value="Bachelor">Bachelor's
<option value="Master">Master's
<option value="PhD">PhD
</select>
<script type="text/javascript">
document.getElementById('education').value = "<?php echo $_POST['education'];?>";
</script>