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

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

jquery - How to make a wrapper function in javascript? -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -