apply border on input? - Javascript jQuery

Javascript examples for jQuery:Form Input

Description

apply border on input?

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-compat-git.js"></script> 
      <script type="text/javascript">
    $(window).on('load', function() {
$('input').wrap('<span />').parent().css('border','1px solid red');
    });//from  w  w  w .  jav a 2  s.  co  m

      </script> 
   </head> 
   <body> 
      <input type="checkbox">  
   </body>
</html>

Related Tutorials