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