bijan Posted February 8, 2006 Share Posted February 8, 2006 var x=document.getElementById('lottery').insertRow(j+1) var r1=x.insertCell(0) var r2=x.insertCell(1) var r3=x.insertCell(2) var r4=x.insertCell(3) r1.innerText=results[j*4] r2.innerText=results[j*4+1] r3.innerText=results[j*4+2] r4.innerText=results[j*4+3]I used this code to generate a table row and insert the text into it,It works well in IE but it does not work in FireFox,What should I do ? Link to comment Share on other sites More sharing options...
Chocolate570 Posted February 9, 2006 Share Posted February 9, 2006 Elements don't have the property 'innerText' in firefox. Try innerHTML. Link to comment Share on other sites More sharing options...
bijan Posted February 9, 2006 Author Share Posted February 9, 2006 Thanks,It did work with using innerHTML. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now