jquery - Javascript only works with alert (); -
my code works perfect if use alert(); in between. if don't use it, part after // alert() ; doesn't executed. function playerleer() { $('#pplay').css('background', 'url("images/play.png")'); $('#player').get(0).pause(); $('#player').attr('src',null); $('.song').html(null); alert(); $('#seekslider').val(0); $('#curtimetext').html('0:00'); $('#durtimetext').html('0:00'); } what do? thanks responds :) janik have tried using chrome debugger or javascript debugger? basically if type debugger in script so function playerleer() { $('#pplay').css('background', 'url("images/play.png")'); $('#player').get(0).pause(); $('#player').attr('src',null); $('.song').html(null); debugger; $('#seekslider').val(0); $('#curtimetext').html('0:00'); $(...