“Adicione o link ao texto usando SPAN HTML” Respostas de código

Adicione o link ao texto usando SPAN HTML

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

jQuery('#linkChange').replaceWith(link);
Comfortable Cod

Adicione o link ao texto usando SPAN HTML

<script type="text/javascript">
    $(document).ready(function(){
        $('td span').each(function(){
            $(this).html("<a href='" + $(this).html() + "' />" + 
                $(this).html() + "</a>");
        });
    });
</script>
Comfortable Cod

Adicione o link ao texto usando SPAN HTML

<a href="http://www.domain.com/about" target="_blank">http://www.domain.com/about</a>
Comfortable Cod

Adicione o link ao texto usando SPAN HTML

<span id="linkChange">http://domain.com</span>
Comfortable Cod

Respostas semelhantes a “Adicione o link ao texto usando SPAN HTML”

Perguntas semelhantes a “Adicione o link ao texto usando SPAN HTML”

Mais respostas relacionadas para “Adicione o link ao texto usando SPAN HTML” em HTML

Procure respostas de código populares por idioma

Procurar outros idiomas de código