2
Is there any simplified way to make a selector listen to various types of events?
Example:
$('meu-seletor').on(['click','touchstart','keyup'],function(){
// minha ação aqui
});
Currently the only solution I know would be to create multiple .on()
each calling a single event. It is possible to do it in some other way?
Put, really this?! Much simpler than I imagined.
– Kazzkiq
@Kazzkiq But beware that it has device that fires both the click and the touchstart. Then your System will rotate bent.
– bfavaretto
Well viewed @bfavaretto!
– Sergio