validation of appended form fields
Hi
I have a form which we append fields to when a user clicked a button. This is all working great.
However we need to be able to track and block when a user clicks the enter key.
We have the following code which works great when there is just one row of fields, however when we append the extra form it doesn't work on them...
-
$('.code').keyup(function(e) {
alert(e.keyCode);
if(e.keyCode == 13) {
alert('Enter key was pressed.');
}
});
can anybody help with this.
thanks