Sha256: 515f12baeb485c43dc070d5fe423098fd3f5517998307649cf32ac63584b9020
Contents?: true
Size: 899 Bytes
Versions: 25
Compression:
Stored size: 899 Bytes
Contents
<html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>jquery test</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript" charset="utf-8"> (function ($) { function init(){ $(".editLink").click(function(event){ var scriptTag = "<scri" + "pt> function update() { return 0; } </s" + "cript>"; $('#script').replaceWith(scriptTag); $('#content').append(typeof(update)); event.preventDefault(); return false; }); } $(document).ready(init); })(jQuery); </script> </head> <body id="jquery" onload=""> <div id="script"></div> <a href="http://www.google.com" class="editLink">add function</a> <div id="content">typeof update: </div> </body> </html>
Version data entries
25 entries across 25 versions & 1 rubygems