$(document).on('keypress', '#formPF input[type=text]', function(e) { //live binding for new attached elements if (e.keyCode === 13) { e.preventDefault(); } });