It is 2019 and there's a better way to do this: const form = document.querySelector('form'); const data = new URLSearchParams(new FormData(form).entries()); To get value (same as others suggested) function test(a) { var x = a.options[a.selectedIndex].value; alert(x); } To get option text (i.e. step type: button checkbox color date datetime datetime-local email file hidden image month number password radio range reset search submit tel text time url week: type value: text: value width New: pixels Follow edited Jun 26, 2018 at 9:44. answered Jun 26, 2018 at 9:27. Example 1: In this example the form input text field gets the focus as page loads by using focus() method .Here the input element is selected by input keyword in JQuery selector. Communication or -Select-) You can simply use the jQuery val() method to get the value in an input text box. You can select on any attribute and its value by using the attribute selector [attributename=optionalvalue], so in your case you can select the option and set the selected attribute. I wonder that everyone has posted about value and text option to get from