If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Uncaught TypeError: cannot read property "checked" of undefined

I'm having trouble with an onsubmit function that should be simple. Originally, the checkPizza() function was working and created an error message if the user tried to submit the form without selecting a pizza. Somewhere along the way it stopped working and I'm not sure why.

The error console says that it cannot read the property "checked", but I don't know why not. It was working before and I haven't changed anything that I know of, so I'm not sure what's causing the problem.