I have a question about detecting changes if inputs in array of input IDs.
For example I have an array of input IDs: var arrayOfInputs = ['#firstname', '#lastname', '#email', '#phone'];
My problem is that I want to detect any input change in these fields, BUT I don't want to write a bulky script code for each input field separately.
So question is: do there is a way to detect input change for all these inputs in array with one or two lines of code with jQuery?
Maybe I should use something other than array of IDs?