While the law does not normally require employees to give notice (the traditional 2 week notice is just that--a tradition), the law does enforce contracts. If you signed a contract which contained a clause or term requring two-weeks notice, that clause or term is enforceable. If you do not provide the required notice, your employer could take legal action against you.