Stop enter key submitting form

  • Views Views: 9,588
  • Last updated Last updated:
  • window.addEvent('domready',function() {
    $('form_X').addEvent('keydown', function(e) {
    e = new Event(e);
    if(e.event.keyCode == 13) {
    e.stop();
    }
    })
    })
    where: replace X with your form id.

    Add this code to the file ...components\com_fabrik\js\X.js
Back
Top