Board Thread:Code Review/@comment-29457887-20150516042717/@comment-11733175-20150516063935

A few things:
 * 1) Don't use the   attribute, you can do   instead.
 * 2)   will return null if it doesn't exist. to avaoid that issue, and for it to quietly fail, you can use jquery to get the value:   In doing that you can also cache the jquery call so it looks like   The ellipsis represent your code to be filled in, and it's missing line breaks but hopefully you get the idea.
 * 3) Unless you want to use that function elsewhere, you can actually do   where ... is code within validateForm. This prevents any potential naming conflicts as it's quite a generic name.

Hope this helps :)