Various among different states, there is residency requirement for divorce. Basing on what you write, court can have juridiction if you have lived in its jurisdiction long enough.