Scroll to top of scrollable textbox

crucialdesignsolutions
Community Member Posts: 2
Hi there, just have a quick question if anyone has done this before. Trying to figure out the best way to use javascript to set a scrollable lectora textbox to reset to the top position upon clicking of a button. I have tried:
function init_scroll() {
$(".IDofScrollableTextBox").scrollTop(0);
}
but this code does not seem to be working. Any help would be appreciated thanks!
function init_scroll() {
$(".IDofScrollableTextBox").scrollTop(0);
}
but this code does not seem to be working. Any help would be appreciated thanks!
Comments
-
I just gave it a try in a very simple example and got it working. Do you have a simple title using your code that I can look at to make sure everything is tied together correctly.
And finally is this using Lectora Online or Inspire/Publisher so i can attach a sample title if need be.
Categories
- 35.8K All Categories
- 109 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 28.9K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 22 ELB Learning Content
- 22 ELB Learning Content Discussions
- 321 CenarioVR®
- 188 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 41 Rockstar Learning Platform®
- 38 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 5 The Training Arcade®
- 5 The Training Arcade Discussions
- 934 All Things eLearning
- 36 eLearning Development
- 546 Learning Management System (LMS) Integration
- 332 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products