Line 6: | Line 6: | ||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> | <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> | ||
<title>Bootstrap 101 Template</title> | <title>Bootstrap 101 Template</title> | ||
− | + | $('img').on('click', function (){ | |
− | + | $('body').append('<div id="dialog" title="Image"><img src="' + $(this).attr('src') + '" width="300" /></div>'); | |
− | + | $('#dialog').dialog(); | |
− | + | ||
− | + | ||
− | + | ||
}); | }); | ||
</head> | </head> | ||
</html> | </html> |
Revision as of 22:56, 3 September 2016