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.
重複の可能性: jquery を使用してドロップダウン オプションを選択する
こんにちは、
jqueryを使用してドロップダウンリストから選択したテキストを取得したい..
ありがとうございました
純粋なjqueryだけを使用すると、そのようなものになります
$("#idofyourdropdown option:selected").text();
このようにしてみてください:
$("#yourdropdown option:selected").text();