var password = 'Smoke1'; if( $('#form').smkValidate() ){ if( $.smkEqualPass(password, '#pass') ){ // Code here } }