Charitable donations for state returns

If I live in one state (NJ) and work in another (NY), what portion of my charitable donations goes to each state? Is the full donation amount deductible on both returns?