Possible to scroll into view without jquery, especially in Now Mobile?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2024 02:38 PM
I need to scroll my multirow variable into view after it fails input validation, that is, in an onSubmit script. I'm not able to scroll to the mrvs control, but I can scroll to its Remove All button:
var btnRemoveAll = $j("button:contains('Remove All')")[0];
btnRemoveAll.scrollIntoView({ behavior: "smooth", block: "start" });
That works fine on the desktop. But in Now Mobile nothing happens. What can I do?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2024 09:44 AM
I also tried it without the $j but the result is the same.
var btnRemoveAll = document.querySelector("[aria-label='Remove all rows for Affected SKUs']");
btnRemoveAll.scrollIntoView();