I have a function:
var filter = function (p) {
$("input[id^=input_1").val(p).trigger("keyup");
$("input[id^=input_2").val(p).trigger("keyup");
}
Both inputs will have the text inserted into it, but the trigger keyup will only work with one of the inputs. Is there a way to trigger keyup on both?
I tried changing the order of the inputs and tried using both inputs selectors on the same line. But still the keyup event only works with one.
3