I have a basic form that I'm using for member registration. I'm using the form onsubmit event to populate a hidden form field based on some of the form's fields. It's working great, but I'd like to prevent the form from submitting if javascript is NOT enabled. This will ensure that the hidden field gets properly populated on the clients machine.
I realize it's probably best practice to support registration without javascript enabled, but I'd like to run with the current solution I have in place
<form id='member_form' method="post" action="http://www.mysite.com/" onsubmit="build_username();" >