Amit Sarwara Amit Sarwara - 1 year ago 52
jQuery Question

Fire Jquery event when i change one of the 10 select lists

I have

number of select lists.
is dynamic ( depends on the condition and range of n is 1-30). I want to run a jQuery function with
event. Please tell me how can I do that.

Answer Source

assign same class to all your select lists, say "demo", and use on change event handler:'

$(document).on('change', '.demo', function() {
    //your code here