jQuery(document).ready(function(){ jQuery("#submitclass input").click(function(){ jQuery("#submitclass form").submit(); }); });