I was under the impression that I could get the value of a select input by doing this $(this).val();
個人印象是我能夠經過執行$(this).val();
來獲取選擇輸入的值$(this).val();
and applying the onchange
parameter to the select field. 並將onchange
參數應用於選擇字段。 app
It would appear it only works if I reference the ID. 它彷佛只有在我引用ID時纔有效。 this
How do I do it using this. 我該怎麼作呢。 spa