How to find the position(x,y) of the empty field in jquery

假装没事ソ 提交于 2021-02-10 17:36:17

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!