Home > Cannot Read > Cannot Read Property Selectedindex Of Null

Cannot Read Property Selectedindex Of Null

No one else is as qualified. How to decline a postdoc interview if there is some possible future collaboration? Last edited by cbiblis; 03-23-2011 at 02:55 AM. Mark as answer,if it helped U! this contact form

var ddlCategory1 = document.getElementById(getSpaceAdvanceClientId+'ddlCategory'); alert(ddlCategory1); var CategoryName = ddlCategory1.options[ddlCategory1.selectedIndex].text; -- Here getting err(Cannot read property 'options' of null) var CategoryId = ddlCategory1.options[ddlCategory1.selectedIndex].value; I also tried with .innerText and .InnerHTML but same We recommend upgrading to the latest Safari, Google Chrome, or Firefox. Related 2979Which “href” value to use for JavaScript links: “#” or “javascript:void(0)”?561Change the selected value of a drop-down list with jQuery2706How can I get query string values in JavaScript?1467Get selected text Join them; it only takes a minute: Sign up selectedIndex is returning “undefined” as value up vote 3 down vote favorite Forgive me if this is a stupid question; it's been original site

window.open will open in a new window or a new tab depending on the browser setup. All rights reserved. Star 9918 Points 1127 Posts Re: Cannot read property 'options' of null Mar 06, 2012 01:20 AM|Allen Li - MSFT|LINK Hi, you can use “DropDownList.options[DropDownList.selectedIndex].text” to get the selected text, for

Is this your first visit? Powered by vBulletinCopyright ©2000 - 2016, Jelsoft Enterprises Ltd.

Home Downloads ChronoForms ChronoConnectivity ChronoForums ChronoContact Forums Subscriptions FAQs Contact Us Board Index ChronoForms Questions & Answers Tue Nov 8, 2016, it then will open 2 googles and 2 yahoo tabs for a total of four tabs. Is it anti-pattern if a class property creates and returns a new instance of a class?

Reload to refresh your session. So always confirm this before wondering why errors are happening. How to react? Teenage daughter refusing to go to school Underbrace under nested square roots How to give Permission to create sandbox?

Register. Please update your code if problem still occurs than let us know. here is the jsfiddle to reproduce the error. Not the answer you're looking for?

by the way for this project i want it to open the same url that is selected on all of the tabs. Any time you get an '...of undefined' error it means the object (or element, in your case) you think you're working on has not been found. I'm not sure if the IE prompt can be by-passed. Thanks, Vishmita Jadeja(vja).

what would ready be cool to see next is a selection in the url options that would open all of the urls individually in there own tab with one click. http://sauvblog.com/cannot-read/cannot-read-property-offsetheight.html Heres my code: JS expirationYearSelectedIndex = document.getElementById("selYear").selectedIndex; console.log("expirationYearSelectedIndex = " + expirationYearSelectedIndex); expirationYear = document.getElementById("selYear").options[expirationYearSelectedIndex].value; console.log("expirationYear = " + expirationYear); HTML