reference a html table column with jquery

Posted on 2016-08-30
Last Modified: 2016-08-30
I have a html table that looks as shown on this code.

<!DOCTYPE html>
<html xmlns="">

    <script src=""></script> 

    <style type="text/css">

        #table1 {
            border: solid 1px #000000;


    <script type="text/javascript">
        $(document).ready(function () {
            // -------------------

            // -------------------



        <table id="table1">



Open in new window

On page load, I'm trying to use jquery to do the following.

on jquery page load event,
Look in the third column of the table with id of table1, and add a hyperlink to the text in that cell.
The hyperlink for the link in the third column should point to:

So the rendered html for the table should look like this:

        <table id="table1">

                    <span><a href="">Bing</a></span>

Anyone know the jquery syntax for this?
Question by:maqskywalker
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

James Bilous earned 500 total points
ID: 41776951
$("#table1 tr td:nth-child(3)").append("<a href=''></a>");

Open in new window


Author Closing Comment

ID: 41777112

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Boolean 13 46
Do I need to force my browser to see my new Favicon 4 42
Horizontal Full Calendar using php 5 39
html link offset in page with umlaut character in address 5 29
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
This article discusses how to implement server side field validation and display customized error messages to the client.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question