I have an input text field, and I need to calculate a total when it is changed. I use the change and keyup events to do this. I couldn't find a way to bind multiple events to the same action.
If this indeed isn't possible, then I would suggest something like this:
I have an input text field, and I need to calculate a total when it is changed. I use the
change
andkeyup
events to do this. I couldn't find a way to bind multiple events to the same action.If this indeed isn't possible, then I would suggest something like this:
I couldn't find anything on multiple different events on an element either? I would suggest something like this for it:
Thank you for a great framework. This has really cleaned up my JavaScript.