投稿

検索キーワード「spin the wheel」に一致する投稿を表示しています

[無料ダウンロード! √] option selector 226756-Option selected not working

イメージ
Gender Just Trying To Include Every Option In Gender Selector O Devrant Choose an option in the dropdown list and output the text of the selected option in an element with id="demo" var x = documentgetElementById("mySelect"); The simplest way to do this is to use the contains() selector on the option $("select optioncontains('Second')") Here's a working example http//jsfiddlenet/8Tn4Z/ and a version with the value attribute not included http//jsfiddlenet/8Tn4Z/1/ To get the actual select element itself you can simply use the parent()method on the above code so that Option selected not working