Answers for "html select on change"

3

on change select item

$('select').on('change', function (e) {
    var optionSelected = $("option:selected", this);
    var valueSelected = this.value;
    ....
});
Posted by: Guest on July-29-2021
2

onchange on select tag

<select id="comboA" onchange="getComboA(this)">
  <option value="">Select combo</option>
  <option value="Value1">Text1</option>
  <option value="Value2">Text2</option>
  <option value="Value3">Text3</option>
</select>
Posted by: Guest on May-19-2020
0

js select on change value

<select id="comboA" onchange="getComboA(this)">
  <option value="">Select combo</option>
  <option value="Value1">Text1</option>
  <option value="Value2">Text2</option>
  <option value="Value3">Text3</option>
</select>
Posted by: Guest on January-01-1970

Code answers related to "Javascript"

Browse Popular Code Answers by Language