JQuery click event handler on <select> - Javascript jQuery

Javascript examples for jQuery:Select Dropdown

Description

JQuery click event handler on <select>

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-2.2.0.min.js"></script> 
      <script type="text/javascript">
    window.onload=function(){/*from   w ww.j  a  va2s .  c  o m*/
$('#my_select').on('mousedown', function(){
   console.log('clicked');
});
    }

      </script> 
   </head> 
   <body> 
      <select id="my_select"> 
         <option>1</option> 
      </select>  
   </body>
</html>

Related Tutorials