Is this script still valid?
<script> jQuery( document ).bind( 'gform_post_render', function() { var firstError = jQuery( 'li.gfield.gfield_error:first' ); if( firstError.length > 0 ) { firstError.find( 'input, select, textarea' ).eq( 0 ).focus(); document.body.scrollTop = firstError.offset().top; } } ); </script>
The li selector will only work with forms that have legacy markup enabled. Legacy markup will be removed in a future version, 3.1 I think, so I recommend removing that selector from your code.
li
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.