Prasad Bolla's SharePoint Blog

Click Here to go through the Interesting posts within my Blog.

Click Here to go through the new posts in my blog.

Friday, January 18, 2013

Live Task Replace Edit Image within an Anchor Tag in SharePoint 2010 List




Note:-

First Identify the td tag which class it is carrying. Here we identified the class is .ms-vb-icon. Using that we had replaced the image with text.
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
                $(".ms-vb-icon").find("a").each(function(){
                                $(this).html("");
                                $(this).text("Edit");
                });

});
</script>

No comments:

Post a Comment