JSFiddle - React, Tailwind, and code Playground

by ndelavi

HTML

<html>
    <head>
        <title>hello</title>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>

<script>
function get(){
	var linkImagem = $('#myimgg').attr('src');
    var link2 = linkImagem.replace('image.tmdb.org', 'facebook.com');
    alert(link2);
}

$(document).ready(function() {
    get();
});

</script>
    </head>

    <body>
        <img id="myimgg" src="https://image.tmdb.org/t/p/w185//hCyeepDn4lfT9rjqYZGBBLU371H.jpg" title="Suzumiya Haruhi no Yuuutsu Online" alt="Suzumiya Haruhi no Yuuutsu Online" />
    </body>
</html>