live расчет из введенных данных в поле

by Denis Tverdokhlebov

HTML

<input type="text" id="test">
<div></div>

JavaScript

var check_this = function end() {
  var option = "";
  var check = $("#test").val();

  var test_text = $.isNumeric(check);
  if (test_text == false) {
    $("div").html("ты ввел не число");
  } else {
    $("div").html(check * 25);
  }
}

$('#test').keyup(function(event) {
  $(check_this);
});