javascript - jQuery scroll down pop up window page and not the main html page -


we have html page pop gets opened on button click. both html page , pop have scroll bar them.

i want pop window scroll down on click of button inside pop up.

i doing: $(window).scrolltop($('#suggestdetails').offset().top);

the element #suggestdetails inside pop main html page scroll bar gets down on button click , not pop scroll bar.

any idea how move down scroll bar/screen inside pop up?

you need scroll popup/modal, not window.

$('#yourmodal-id').scrolltop($('#suggestdetails').offset().top);


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -