SHOW:
|
|
- or go back to the newest paste.
1 | <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> | |
2 | </script> | |
3 | <script> | |
4 | ||
5 | $(document).ready(function() { | |
6 | $('.spoilertext').before('<a class="spoiler" href="#">[spoiler]</a>') | |
7 | - | $('.spoiler').click(function() { |
7 | + | $('.spoiler').click(function(e) { |
8 | $(this).next('span').toggle(); | |
9 | e.preventDefault(); | |
10 | return false; | |
11 | }); | |
12 | }); | |
13 | </script> |