Skip to content

Commit 8d720ef

Browse files
author
Alfonso (the fonz) de la Osa
committed
demo
1 parent ca781bd commit 8d720ef

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

demo/demo.js

+7
Original file line numberDiff line numberDiff line change
@@ -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

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<title>jQuery elementready demo</title>
5+
</head>
6+
<body>
7+
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

Comments
 (0)