How can i write this in one line.
$('#id').whatever();
$('#id1').whatever();
$('.class').whatever();
As with CSS, you can use commas to join together multiple distinct selectors:
$('#id, #id1, .class').whatever();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With