I am going bonkers trying to figure this one out. I know I'm not doing this right. Here's what I've got:



$(document).submit(function(){
if($("input[name=type_of_transaction]").val() ==...