<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<form onsubmit="return false">
<input type="text"/>
<input type="submit"/>
</form>
<script type="text/javascript">
$("form *").not("[type='submit']").on('click', function () {
alert(1);
});
</script>