AnsweredAssumed Answered

scrolling to the first error after submit

Question asked by eyalseg on May 28, 2018
Latest reply on May 29, 2018 by emha

I want to scroll to the first error after submit.

The position is: NWF$(".nf-validator-error:visible").first().offset().top

The problem is that I can't add listener to the submit button. 

I can't do like this:

NWF$("input[type=submit][value=send]").click(function(){})

 

So...

 

1. Is there OOTB solution?

2. if not - how may I add event listener to an submit button (responive file)

Outcomes