Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <label><input type="checkbox" name="chk" id="chk1" value="casual">casual</label><br>
  <label><input type="checkbox" name="chk" id="chk2" value="intermediate">intermediate</label><br>
  <label><input type="checkbox" name="chk" id="chk3" value="hunter">hunter</label><br>
  <label><input type="checkbox" name="chk" id="chk4" value="forest">forest</label><br>
  <label><input type="checkbox" name="chk" id="chk5" value="term">extreme</label><br>
  <label><input type="checkbox" name="chk" id="chk6" value="river">river</label><br>
  <label><input type="checkbox" name="chk" id="chk7" value="beach">beach</label><br><br><br>
  <input type="text" id="chkfilter">
</body>
</html>
 
$(function() {
$('#chkfilter').on('keyup', function() {
    var query = this.value;
    $('[id^="chk"]').each(function(i, elem) {
          if (elem.value.indexOf(query) != -1) {
              $(this).closest('label').show();
          }else{
              $(this).closest('label').hide();
          }
    });
});
});
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers