I am working on some HTML/JavaScript code.
I have the following box.
<select style="height: 90px;" id="cboApplications" name="cboApplications[]" multiple> <option value="1">App 1</option> <option value="2">App 2</option> <option value="3">App 3</option> </select> I have the following JavaScript code
$("#cboApplications option[value=2]").attr("selected", "selected"); For some reason though, nothing gets selected, and no errors are shown.