Can we post a form with a dropdown value through ajax as document.getElementById(dropdown).value as the selected value of drop down , Or is it neccessary that we should use selected.Index
Can we post a form with a dropdown value through ajax as document.getElementById(dropdown).value as
Share
The short answer is “yes”, but make sure that all options have a value attribute or property first, as not all browsers correctly report the option value where no value has been set (i.e. instead of sending the content (text), they send nothing). That goes for normal form submission too.