{"id":301,"date":"2022-08-30T14:59:04","date_gmt":"2022-08-30T14:59:04","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/10\/05\/problem-about-selectedindex-record-and-share-programming-errors\/"},"modified":"2022-08-30T14:59:04","modified_gmt":"2022-08-30T14:59:04","slug":"problem-about-selectedindex-record-and-share-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-selectedindex-record-and-share-programming-errors\/","title":{"rendered":"problem about selectedindex-Record and share programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f3cb27612673af82451579c23908d954?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ndaddioJP<br \/>\njavascript internet-explorer selectedindex<br \/>\nI saw a few posts similar to my problem and tried the solutions offered, but I&#8217;m still having issues with IE8 &amp; IE9 and &#8216;selectedIndex&#8217;. This code returns my variable answerSubmitted as &#8216;undefined&#8217;: var answerSubmitted = document.getElementById(&#8220;DropDown-Answers&#8221;).selectedIndex;The above works perfectly in all other browsers. Bas<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8f810549c8e2ecb5e360f5e3fb77f7c0?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBakhera Ghani<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/678c7ee0f57988f895fe47057eef817c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nRichard<br \/>\njavascript select selectedindex<br \/>\nI have this code and I keep getting undefined if I test the selectedIndex.alert(x.selectedIndex);So, setting it is also a problem.Does anyone possibly see what the problem is?\/\/makes list off tags function ttyps_select(data,naamsel,selectid, containerid){if(!tty<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/51bbf006002450d264a53bf1afc428a6?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJeremy<br \/>\nphp drop-down-menu selectedindex undefined-index<br \/>\nI am getting an Undefined index: for every ID which is over a thousand. I have tried everything to get the error to disappear and am hoping someone would be able to help. Please and Thanks in advance.$bamid is what is called from the page and it works. The error comes from this statement &#8220;$selected[$id]&#8221; which there are no errors if removed. Adding double or single quotes does not work.<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2013-10-05 19:47:17. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>daddioJP javascript internet-explorer selectedindex I saw a few posts similar to my problem and tried the solutions offered, but I&#8217;m still having issues with IE8 &amp; IE9 and &#8216;selectedIndex&#8217;. This code returns my variable answerSubmitted as &#8216;undefined&#8217;: var answerSubmitted = document.getElementById(&#8220;DropDown-Answers&#8221;).selectedIndex;The above works perfectly in all other browsers. Bas Bakhera Ghani Richard javascript select selectedindex [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-301","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=301"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/301\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}