Created
November 26, 2015 03:40
-
-
Save hashmaparraylist/0eb5a0bc782a03a6c7b3 to your computer and use it in GitHub Desktop.
jQuery show a div into other div
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var htmlText = "<div id='pop' style='background-color:#0000ff;"; | |
| htmlText += "position: absolute;" | |
| htmlText += "left: 40%;"; | |
| htmlText += "'>"; | |
| htmlText += "foobar3333<br><br><br> Hoge </div>"; | |
| $("#page").prepend(htmlText); | |
| console.log($('#pop')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment