Passing unknown amounts of variables using through a string string and eval and multiple functions a
- by user300797
I'm not sure how best to describe this problem... In short, I want to use object literal to allow me to pass a random amount of variables in any order to a function. Whilst this is not big deal in theory, in my code, this object literal is passed to a second function call on_change.
on_change works comparing an element inner HTML to a string. if…