I have two input, one static:
<input type="text" class="someclass" />
and other dynamic:
$("<input />", {
type: "number",
min: "0"
}).addClass("someclass").appendTo($("#someid"));
and this code works fine in static input:
$(document).on("focusout", ".someclass", function(){ alert("hello!");});
But for dynamic input generate infinite loop with the alert, this happen only in Chrome, someone has any idea?
error is when focus go on the other input with the same class