var script_tag = document.getElementById('Player_Body') var uid = script_tag.getAttribute("data-uid"); $(document).ready(function() { $("#PLAYER-BODY").load("http://shoutcastwidgets.com/panel/widget-access/player_body.php?uid=" + uid + "&blank=blank"); $.ajaxSetup({ cache: false }); });