hi
what is diffrence between onChange="this.submit()" and onChange="submit(this)" ?
thanks
Assuming that is added to an element inside a FORM tag (e.g. an INPUT element), nothing. submit() is a native function for FORMs (e.g. you can't define your own submit() function).
if submit changing to another word. example:
onChange="this.run()" onChange="run(this)"
what is diffrence?
this.run() implies that the object has some sort of run() method native to it.
run(this), however, means that your own run() function is executed with a reference to the object passed as a parameter.
Don't forget to mark this thread resolved 😃
thanks and sure