John Quincy Adams , son of former President John Adams , was elected , and he immediately chose Clay as Secretary of State .
Instead , John Quincy Adams was elected president .