1

Please check my jsfiddle.

Here is the full screen view..

http://jsfiddle.net/zKhwe/embedded/result/

Please click add more link until you reach the bottom of the page. Then click select a name link. A modal will appear. Just select any name and it will fill the text field.

My problem is after filling the text field, the page scrolled to top automatically.

Can anyone help me to fix this issue?

Here is my source code http://jsfiddle.net/zKhwe/

4

1 回答 1

2

在您的点击处理程序中使用event.preventDefault()- 页面滚动到顶部,因为您正在导航到#点击链接的时间。

固定小提琴:http: //jsfiddle.net/zKhwe/1/

于 2012-11-17T04:16:59.053 回答