Javascript examples for jQuery:Form Checkbox
Check if value of input is empty after browser refresh
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.11.0.js"></script> <script type="text/javascript"> $(document).ready(function () { $(".chang").each(function(){ if($(this).val().length != 0) {//from w w w. j a v a 2 s .co m $(this).hide(); } }); }); </script> </head> <body> <input class="chang" id="test1"> <input class="chang" id="test2"> </body> </html>