Updated Code and added an alert

Updated code.  Functionality seems to work now and I added an alert to
prevent user’s from submitting an answer without click an answer first.