The binding of alkaline earth metal ions to alginate.