With jQuery's, `.val()` method allows setting the value of a drop-down. How to select html element using ID in jQuery when ID contains a dot character ? Please use ide.geeksforgeeks.org, generate link and share the link here. Try using the GridView1_RowDataBound or GridView1_RowUpdating event. For the purposes of this example we will use... As you can see, the initially selected item is the first item on the list. Also the following code will help you to select item from selection option by index number. Note, that .val() does not fire the change event. fill the textbox on change of a dropdown value selected using javascript. How to add options to a select element using jQuery? If index is not known in advance or you don’t want to depend on the index, you can do like: In pure JavaScript, you can use the selectedIndex property which reflects the index of the selected