Advertisement
Guest User

Untitled

a guest
Dec 17th, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.06 KB | None | 0 0
  1. <html>
  2.     <head>
  3.         <title>Onclick</title>
  4.         <script type="text/javascript" src="jquery.min.js"></script>
  5.         <script type="text/javascript">
  6.             function init()
  7.             {
  8.                 $(document).on ('click', '.clicker', function(e) {
  9.                     alert("moo");
  10.                 });
  11.  
  12.                $('#ie10').each(function() {
  13.                     $(this).wrap ('<span class="clicker"></span>');
  14.                 }
  15.             }
  16.         </script>
  17.         <style type="text/css">
  18.             .clicker > select {
  19.                 position: relative;
  20.                 z-index: -1;
  21.             }
  22.             .clicker {
  23.                 position: relative;
  24.                 z-index: 100;
  25.             }
  26.         </style>
  27.     </head>
  28.     <body onload="init();">
  29.         <form style="position: relative">
  30.             <select id="ie10" disabled="disabled">
  31.                 <option>One</option>
  32.                 <option>Two</option>
  33.                 <option>Three</option>
  34.             </select>
  35.         </form>
  36.     </body>
  37. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement