Easy Input Results

by Kevin Pliester

HTML

<form id="irgendwas">

  <input type="text" name="test" />

  <div id="result"></div>

</form>

JavaScript

// [name=test] on keydown, keyup, change, paste
// change = select fields
$('input[name=test]').on('input', function() {

	// get and store input value in variable
  var thisValue = $(this).val();
  
  // place value in #result
  $('#result').text(thisValue);
  
});