Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
<script type="text/javascript">
  $(document).ready(function() { 
    $("#zahl").change(function() {    // beim verlassen ausführen
      var eingabe = $("#zahl").val(); // inhalt aus id="zahl" auslesen
      if(eingabe > "5"){              // prüfung größer als 5 dann
        alert("größer 5");            // warnung ausgen oder halt was anderes
      }else{                         
        alert("kleiner 5");          // oder warnung ausgen
      }
    });
  });
</script>
</head>
<body>
  hier mal eine kleiner 5 eintragen udn feld verlassen oder größer 5<br>
<input type="text" name="zahl" id="zahl">
  
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers