jQuery獲取select onChange的值 - jQuery get value of select onChange

問題:

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


解決方案:

參考一: https://stackoom.com/question/kuH0/jQuery獲取select-onChange的值
參考二: https://oldbug.net/q/kuH0/jQuery-get-value-of-select-onChange
相關文章
相關標籤/搜索