In a Jsp page, I've a ADD button which dynamically adds a text box with id ="email"+rowindex
.
When I try to fetch the value of the email added through document.getElementById('email' + (2)).innerText
, where (2)
is the row index value, it is not working in Firefox, but it works perfectly fine in IE. Please help.