Before the divorce can be legalized in the state of Illinois, certain requirements must be met, such as residency and others. See FAQ on how to file for a divorce in Illinois.
If you are considering moving after divorce, especially if it is a long-distance move, you must consider the impact on your children. See an excellent essay that investigates how children perceive and react to the combined influences of divorce and relocation.