javascript - Add script dynamically in jQuery -
i save banner script hidden field.
script = $('#myhiddenfield').val();
i want display banner div banner overwrites whole page. disappears , can see banner.
$('#divbannercontent').html(script);
suggestions?
have tried loading script after document loads?
$(document).ready(function(){ script = $('#myhiddenfield').val(); $('#divbannercontent').html(script); })
Comments
Post a Comment