Jquery targeting children of fieldset - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:parent

Description

Jquery targeting children of fieldset

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> 
  <style id="compiled-css" type="text/css">

.main{/*from w w  w.j  a v a  2s.c  o  m*/
   display: none;
}


      </style> 
  <script type="text/javascript">
    $(window).on('load', function() {

$('.field').parent().show();

    });

      </script> 
 </head> 
 <body> 
  <div class="main"> 
   <div class="field">
     test 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials