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

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

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

sql server ce - Is there some way to make sqlce3.5 and 4.0 co-exist in the C# project -