<script src="http://maps.google.com/maps/api/js?sensor=false&language=ru"></script>
(function($){
$.fn.onEnterPress = function (callback) {
return this.each(function() {
$(this).on('keypress', function(e) {
var code = e.keyCode || e.which;
if (code == 13 && typeof callback == 'function') {
e.preventDefault();
callback();
}
});
});
};
})(jQuery);
$('input[name="email"]').onEnterPress(function() {
alert('hello');
});