How does JavaScript interpret indexing? <pre><code>function highlightRow(searchRow) { if(searchRow != null) { var oRows = document.getElementById('Table').getElementsByTagName('tr'); //use row number to highlight the correct HTML row. var lastTwo = searchRow; lastTwo = lastTwo.slice(-2); //extract last two digits oRows[lastTwo].style.background="#90EE90"; } } </code></pre> <p>I got paging off 100 rows. </p> <p>When searchRow returns 55, I highlight row 55.<br> When searchRow returns 177, I highlight row 77, hence the slice function. </p> <p>Now the issue:<br> When searchRow returns 03 or 201, the indexing on oRows[] does not work. </p> <p>Why is this? </p> <p>To confuse me more when I hard coding "03" it does work: </p> <pre><code>oRows[03].style.background="#90EE90"; </code></pre> <p>Any insight into how this works?</p> <p>Does jQuery have this issue?</p> <p>Thank you.</p>