$(document).ready(function() { $('._sendContactIndex').each(function() { $(this).click(function() { $('#sendContactFormIndex').submit(); return false; }) }); });