Advertisement
justhrun

hrefclick.hateemel

Oct 22nd, 2015
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.86 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html><head><title>Bla bla</title>
  3. <script type='text/javascript' src='jquery-1.9.1.min.js'></script>
  4. <script type='text/javascript'>
  5. $(document).ready(function() {
  6.     var clickCount = 0;
  7.     $('#hyperlink').on('click', function(e) {
  8.         e.preventDefault();
  9.         $('#hyperlink').hide();
  10.         $('#listbox').show();
  11.     });
  12.     $('#listbox').on('click', function() {
  13.         clickCount++;
  14.         if(clickCount<2) return;
  15.         $('#listbox').hide();
  16.         $('#hyperlink').show();
  17.         clickCount = 0;
  18.     });
  19. });
  20. </script></head><body>
  21. <br><br><br><br><br><br>
  22. <div align=center>
  23. <span id='hyperlink'><a href='blabladot.kom'>BlaBlaBla</a></span>
  24. <span id='listbox' style='display:none;'>
  25. <select id='blabla'>
  26. <option value='satu'>satu</option>
  27. <option value='dua'>dua</option>
  28. <option value='tiga'>tiga</option>
  29. <option value='empat'>empat</option>
  30. </select></span>
  31. </div></body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement