Hi there,
I'm kinda new in jQuery, used till today only jQuery plugins, but want to start using the jQuery itself.
Suppose I have such a table:
- <table>
<tr>
<td>some text1. <br /> textToLink1</td>
<td>some text2. <br /> textToLink2</td>
</tr>
<tr>
<td>some text3. <br /> textToLink3</td>
<td>some text4. <br /> textToLink4</td>
</tr>
</table>
I want that the different textToLink inside a cell will convert to links anchors.
How may I do such a thing?
Notice that I don't want that all the text in the cell will become a link, just part of it.
Second question is how to add a strong markup to these links?
Third and last question is how to make each textToLink become a different link.
So in the end of process I will have something like this:
- <table>
<tr>
<td>some text1. <br /> <strong><a href="www.some_link1">textToLink1</a></strong></td>
<td>some text2. <br /> <strong><a href="www.some_link2">textToLink2</a></strong></td>
</tr>
<tr>
<td>some text3. <br /> <strong><a href="www.some_link3">textToLink3</a></strong></td>
<td>some text4. <br /> <strong><a href="www.some_link4">textToLink4</a></strong></td>
</tr>
</table>
I assume I will also need somehow to define some vars to match every textToLink string to the links they should be turning to.
Thanks a lot,
Maor