As a further follow up to this post, this publication from the American Judicature Society spells out all of the changes to and away from judicial elections in recent decades. The most recent change away from elections appears to have been in Utah in 1985. There have been a number of unsuccessful attempts to move in that direction since then.