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

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -