Jump to content
Sign in to follow this  
bijan

Inserrow()

Recommended Posts

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 ?

Share this post


Link to post
Share on other sites

Elements don't have the property 'innerText' in firefox. Try innerHTML.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...