$('input[name="submit"]').click(function(event){ event.preventDefault(); alert('yes'); }); $('.ifInfo > input').css('border','0px !important'); $('input[name="submit"]').css('border','0px !important');