I want to do some action when clicking .smth class
$('.smth').click(function() {
and when you press a key:
$('.txt').bind('keypress', function(e) {
I want to do the same action, so how can I use them with both OR and similar?
$('.log').click.or.$('.txt').bind('keypress', function(e) {
?
Refuse.
source
share