In the programming process, we often get the value in the option when we get the value of the drop-down list box, but there are also times when we need to get the value displayed on the page, for example, we want to get ? The method is very simple, the specific code is as follows:
function isSelect(selectPress) {
. Marked 0, 1, 2
var selectValue2 = selectPress.options[selectPress.selectedIndex].innerText; //Display the specific content of the displayed value (Shanghai, Beijing)
/alert(selectValue2);
if (selectValue == "-1") {
🎜> else {
document.getElementById('form1') .