As soon as you land your new job, let the management know that you will be leaving. Make sure that this is communicated to them in a professional manner and through a formal channel so that it is kept on record. Inform your superiors before you spill the beans to the coworkers.
Serve Notice Period
Most employers will require a notice period to be served as per the employment agreement. Ensure that you spend this period with the company. In case it was not mentioned in the agreement, do not leave the company hanging dry and help them out for a reasonable period of time, so that they can find a replacement for you. This will speak volumes of your professionalism.
Fulfill Your Duties
Make sure that you fulfill all your duties before you leave. There is no point in slacking around while you go through your notice period. The purpose of this period is that the work gets done while they look for a suitable replacement. Make it a point that you keep your end of the bargain.
Help Your Replacement
If the replacement comes while you are still serving the notice period, help him or her in the transition to the new role. Let the person know about how to deal with certain issues and when to do things to get the best results. If the person needs specific help which you can provide, be sure to do it.
Leave on a Happy Note
Often there are issues at work. When leaving a job, try to forget them and spend your last days at work on a happy note. If you have any issues with coworkers or bosses, try to bury the hatchet before you leave.