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# - Roxy file manager in MVC doesn't accept session path -

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

java - Ajax call to jsp and jsp redirecting to further jsp -