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++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -