Scroll in bootstrap modal

Hi all im new in here…
I had a website that open EULA in bootstrap modal, when user scroll to finish the checkbox ‘I read this long writing’ and the button will be enable.
is there any way we can scroll the scroll bar in bootstrap modal, I already trying scrollToPosition and its scrolling the full web.
anyone can help will be apreciated :slight_smile:

It would help a lot if you posted the HTML. My answer assumes you have a <div> containing the eula document.

String js = '''
  var div = document.querySelector("#eula-div");
  div.scrollTop = div.scrollHeight; 
WebUI.executeJavaScript(js, null)

In future, please post questions following this guide. Thanks.

wow thanks Russ… it really helps…
ok next time I will follow your format


1 Like