Good tips. I am going to look into those. I was trying to think of a way to make the onChange more generic but could not come up with anything. Your way is very clear.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.