Reputation: 81
Is there a function like this:
$.show('#anID, .aClass, .anotherClass, #anotherID');
I don't want to write each time
$('#anID').show();
$('.aClass').show();
// etc...
Upvotes: 0
Views: 39
Reputation: 8080
You had the selector and function mixed up:
$('#anID, .aClass, .anotherClass, #anotherID').show();
Upvotes: 1