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
参数应用于选择字段。)
It would appear it only works if I reference the ID.
(它似乎只有在我引用ID时才有效。)
How do I do it using this.
(我该怎么做呢。)
ask by Robin Knight translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…