Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
  
  ul{list-style:none;}
  a{text-decoration:none;}
  
</style>
</head>
<body>
  
  
<form id="form_register" action="" method="">
  
  <input name="" type="text"> <br>
  <input name="" type="text"> <br>
  <input name="" type="text"> <br>
  <input name="" type="text"> <br>
  <input name="" type="text"> <br>
  <textarea></textarea> <br>
  <textarea></textarea> <br>
  <textarea></textarea> <br>
  <textarea></textarea> <br>
  <textarea></textarea>
  <br>
  <br>
  <input class="input_count" type="text" value="">
  
</form>
  
  
  
</body>
</html>
 
(function($) {
  
    $('#form_register').on('keyup change', function() {
        var number = 0;
        $(this).find('input, textarea').each(function(){
           if( this.value === ''){
              number++;
           }
           $('.input_count').val(number);
        });       
    });  
  
})(jQuery);
  
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers