Javascript examples for jQuery Method and Property:parent
Jquery targeting children of fieldset
<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>