Skip to content

Instantly share code, notes, and snippets.

function loadCom(a,b) {
setTimeout(function() {
$(a).fadeIn(250);
}, b);
}
$.fn.onEnterKey = function(callback) {
$(this).keypress(function(event) {
var code = event.keyCode ? event.keyCode : event.which;
if (code == 13) {