Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Onclick</title>
- <script type="text/javascript" src="jquery.min.js"></script>
- <script type="text/javascript">
- function init()
- {
- $(document).on ('click', '.clicker', function(e) {
- alert("moo");
- });
- $('#ie10').each(function() {
- $(this).wrap ('<span class="clicker"></span>');
- }
- }
- </script>
- <style type="text/css">
- .clicker > select {
- position: relative;
- z-index: -1;
- }
- .clicker {
- position: relative;
- z-index: 100;
- }
- </style>
- </head>
- <body onload="init();">
- <form style="position: relative">
- <select id="ie10" disabled="disabled">
- <option>One</option>
- <option>Two</option>
- <option>Three</option>
- </select>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement