I use following statement to find number of table rows, it works fine in Firefox & Chrome but always returns 1 in IE, what is going wrong?
document.getElementById('<%=tblBasket.ClientID %>').rows.length
I use following statement to find number of table rows, it works fine in Firefox & Chrome but always returns 1 in IE, what is going wrong?
document.getElementById('<%=tblBasket.ClientID %>').rows.length
Try:
document.getElementById('<%=tblBasket.ClientID %>').getElementsByTagName('tr').length