Mega Code Archive

 
Categories / JavaScript Tutorial / JQuery
 

Change border style and cursor

< html>   <head>     <script type="text/javascript" src="js/jquery-1.3.2.js"></script>     <script type="text/javascript">         $(document).ready(function(){                                 $("div").click(function () {                  $(this).css({ borderStyle:"inset", cursor:"wait" });                                   });         });     </script>     <style>       input { display:none;margin:10px; }     </style>   </head>   <body>     <body>           <div>Click me</div>           <input type="text" />           <input type="text"/>           <input type="text" />     </body> </html>