How to set the value of a form field using Javascript PIII
This is in continuation of the previous article: How to set the value of a form field using JavaScript Selecting options of a select element through javascript In Javascript, since each <option> tag inside a <select> tag, is placed in the options array of the select object, we can access each select option using a construct such as: selectObject.options[index] where, “index” refers to the position of the option in the array.