问题
I am developing my site. But I met one interesting issue. Now there are more than 300 input fields in a form tag of a page. when user fill the data into it, he will be feeling boring while scrolling down over so much text fields. So I am making "where" button, if user clicks that button, mouse automatically scrolls down to the empty field, and show notification "fill here" right on it. I am making it with Jquery. If someone gets experience with it, please help me:)
回答1:
I think it is very simpliar preview question.
you can rewrite like this
$('input[type="text"]').eq(0).position();
First check it.
来源:https://stackoverflow.com/questions/66098352/how-to-find-the-positionx-y-of-the-empty-field-in-jquery