$(document).ready(function() { var imagepath = $("div.UPE-Page-Details img[src*='EngineContent']").attr("src"); var pagepath = window.location.href; $("div.divSocialBookmarkDisplay").prepend("Pin It "); });
<Photobucket">
<Photobucket
<<Photobucket">">