Reputation: 548
How can i stack id names?
$("#account-edit .input-group.date, #account-create .input-group.date, #group-edit .input-group.date").datepicker({
.....
});
Something like this:
$("#account-edit, #account-create, #group-edit", ".input-group.date").datepicker({
.....
});
Upvotes: 0
Views: 42
Reputation: 1013
$("#account-edit, #account-create, #group-edit").find('.input-group.date')
is what you're looking for!
Upvotes: 3