I would like to handle a change event on elements dynamically created, and selected with each():
$("input[type=date]").each(function() {
$("#myForm").on("change", this, function() {
$(this).css({ color: "#B73132" });
});
});
on()
doesn't seem to work.
I tried:
$this= $(this); // and $this= this;with
$("#form_cahier").on("change", $this, function() {
Nothing works, any idea ?