Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
var tester = $("select[name='SELECTNAME']").attr('id');
特定の select の id / value を取得する正しい方法を誰か教えてもらえますか?
ありがとうございました。
$("select[name='SELECTNAME']").change(function() { var id = $(this).children(":selected").attr("id"); });