Can I change employers if I have an H-1B?

The new employer must file an H-1B petition on your behalf. You may legally work for the new employer upon filing of the H-1B petition.