javascript - document.getElementById(tableRow_Id) is returning different object names in different browsers. Is this the expected behaviour? -


मेरे पास स्निपेट नीचे है।

  var i = document.getElementById (tableRow_Id); चेतावनी: (i);  

जब मैं इसे विभिन्न ब्राउज़रों पर चलाता हूं, जैसे मान मिल रहा है

IE: [object]

एफएफ: [ऑब्जेक्ट HTMLTableRowElement]

मुझे संदेह है कि, इस वजह से केवल कुछ ब्राउज़र मुद्दों का सामना करना पड़ रहा है।

क्या कोई मुझे सुझाव दे सकता है?

मुझे लगता है कि आपके पास एक वाक्यविन्यास त्रुटि है

आपका कोड:

  var i = document.getElementById (tableRow_Id);  

फिक्स्ड:

  var i = document.getElementById ('tableRow_Id');  

यू भूलें ''


Comments

Popular posts from this blog

Selenium IDE Conditional Statements -

php - Something wrong with this for loop -

ruby on rails - How to avoid ActionController::InvalidCrossOriginRequest exception? -