4
I suppose my method:
$(document).on("input", "#textbox", function(){
alert("oi");
});
What script can I force the Alert call to ("hi") ?
I tried a lot and nothing:
$("input#textbox").val("1");
$("#textbox").val("1").on("input");
$("#textbox").input("1");
$("#textbox").input("1").change();
Expected behaviour:
When entering a character in the quantity field, a function must be called that calculates the value and quantity fields to play in the total field. When starting the page this function has to be called as well. The real case is this: a field with value, another with quantity and another with empty total. When opening the page the quantity field will be by default value 1, the value field will vary and the total will be calculated on top of these two values.
I couldn’t quite understand what you meant but in fiddle this working in change
– Otto