<script> function SetPopupText(img, heading1, heading2, description, page) { console.log(heading1); debugger; $('#h2H1').html(heading1); $('#h2H2').html(heading2); $("#imgPopupBanner").attr("src",img); $("#pDesc").text(description); $("input[type='hidden'][name='page']").val(page); return true; } </script>