This function works fine (#new_user is an id of a form):
$("#new_user").submit(function(e) {
e.preventDefault();
return $(".terms").dialog("open");
});
But when i try to add a class, for example:
$("#new_user.team-registration").submit(function(e)
It doesn`t.
How can i make it work only when form#new_user also have class team-registration or artist-registration? Can be only one of them. Thanks!
1 Answer