Skip to content Skip to sidebar Skip to footer

Jquery : Replace The Content Of Span Inside The Table Column

CompanyDocumentation Address

Solution 1:

You never searched for the span:

elem.find("td:eq(2)").find("span.company-type").text("Hello World");

Solution 2:

You had a few typos in your code. Check this update: http://jsfiddle.net/V85Vx/29/

 $(".update-link").click(function () {
     alert("update clicked")
       var elem = $(this).closest('tr');
         elem.find("td:eq(1)").text("Hello World");
    }); 

Post a Comment for "Jquery : Replace The Content Of Span Inside The Table Column"