+1 for getting rid of the getElementById("hiddenAction") because i couldn't see an element with id = hiddenAction