I'm using the following code to see if a form does not contain either class. It works fine if I only look for one, but if I add multiple classes to the if
statement, it seems to bypass them.
if (!form.hasClass('no-ajax') || !form.hasClass('register-step')) {
HTML:
<form id="basic-info-form" class="register-step form efocus" method="post" action="form_process.php?source=newUser">
What am I doing wrong?