php - Jquery append and add var -
i use append method add html div in fly, in case insert iframe append div:
i need send var's value frame works don't know if it's ok
my code :
var iframer="<?php echo "index.php?id=".$_request['select']."";?>"; jquery("#popup_content").append("<div id=adm_popup><iframe src='iframer' width=100% marginwidth=0 height=800 marginheight=0 align=middle scrolling=auto frameborder=0></iframe></div>") the problem it's how can add value of var iframer src of iframe
thank's
try concatenate '+'
jquery("#popup_content").append("<div id=adm_popup><iframe src='"+ iframer + "' width=100% marginwidth=0 height=800 marginheight=0 align=middle scrolling=auto frameborder=0></iframe></div>")
Comments
Post a Comment