Answers for "add link to span hrml"

0

add link to text using span html

<script type="text/javascript">
    $(document).ready(function(){
        $('td span').each(function(){
            $(this).html("<a href='" + $(this).html() + "' />" + 
                $(this).html() + "</a>");
        });
    });
</script>
Posted by: Guest on July-11-2020
0

add link to text using span html

var href = jQuery('#linkChange').html();
var link = "<a href='"+href+"' target='_blank'>"+href+"</a>";

jQuery('#linkChange').replaceWith(link);
Posted by: Guest on July-11-2020
0

add link to text using span html

<span id="linkChange">http://domain.com</span>
Posted by: Guest on July-11-2020

Browse Popular Code Answers by Language