We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca781bd commit 8d720efCopy full SHA for 8d720ef
demo/demo.js
@@ -0,0 +1,7 @@
1
+$(function () {
2
+ var el = $('<div>');
3
+ el.elementready(function () {
4
+ $(this).html('hello world').attr('id', 'salutation');
5
+ });
6
+ $(document).append(el);
7
+});
demo/index.html
@@ -0,0 +1,12 @@
+<!doctype html>
+ <html>
+ <head>
+ <title>jQuery elementready demo</title>
+ </head>
+ <body>
+
8
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
9
+ <script src="../jquery.elementready.js" type='text/javascript'></script>
10
+ <script src="demo.js" type='text/javascript'></script>
11
+ </body>
12
+ </html>
0 commit comments