If you have errors, post them instead of telling people to give you other solutions…
Here is an example of how to use on():
on()