Jump to content

Recommended Posts

I've been searching for this for a while now and I'm getting nowhere.

 

Basically what I want to do is add an id tag to a table element so that I can add that element to a variable using document.getElementById('').

 

So basically I have one page which contains a table and in that table there is a cell which contains some text.

 

<tr>
<td>Text I want</td>
</tr>

 

Like so. Is there something I can throw in there to give that specific part of the table an id tag so I can call it to a variable? I think I'm explaining this correctly, but if you don't get what I mean just ask.

Link to comment
https://forums.phpfreaks.com/topic/148303-solved-quick-question/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.