Find first visible blank input field in form
-
Hello codepeople,
I want to find first input field which gaves validation error. ( .cpefb_error )
I stuck in here.I tried so many variation but this code does not scroll to top where is first error in the form.
jQuery(window).scrollTop(jQuery('[id*="fieldname'+'5_"],fieldset2,fieldset3....etc').find(':input[value=""]:visible').not('button').filter(':first').offset().top);
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Find first visible blank input field in form’ is closed to new replies.