jquery - datepicker scrolls to top after selection (dialog) - IE -
i'm having problems datepickers within dialog modal. after each date selection, page scrolls top of dialog annoying.
using jquery 1.9 & jquery-ui 1.10 , tried both minified & normal versions.
tried following
(f?" ui-priority-secondary":"")+'" href="#">'+q.getdate()+"</a>")+"</td>"
to
(f?" ui-priority-secondary":"")+'" href="javascript:;">'+q.getdate()+"</a>")+"</td>"
and
href="javascript:return false;"
but none seem work.
you can utilize javascript:void(0);
or read event.preventdefault()
if using jquery easy way it, more info https://developer.mozilla.org/en/docs/web/api/event.preventdefault
if using #
without prevent.default gonna take top of browser javascript:;
gonna create , error in javascript script.
read event.preventdefault() vs. homecoming false , read comments return false;
jquery jquery-ui-datepicker
No comments:
Post a Comment