The issue that you are having is because you are trying to modify the Status Reason system field. An integer that specifies the index position for where the new option element should be inserted. 54. I have a select element on my HTML page. So this is an easy way of passing the value to another page (with select option list) through GET in url. Full Source Loop through all options in a … ... Javascript/jQuery: Set Values (Selection) in a multiple Select. Must be an option or optgroup element: index: Optional. The selectedIndex property sets or returns the index of the selected option in a drop-down list. Share. Improve this answer. This tutorial explains how you can perform common operations on select element with vanilla Javascript - adding/deleting options or getting/setting the selected options. Syntax: Set index: selectObject.selectedIndex = number Return index: selectObject.selectedIndex. The index starts at 0. Note: If the drop-down list allows multiple selections it will only return the index of the first option selected. Note: This property is read-only selectedIndex: Sets or returns the index of the selected