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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -