Hi,
I've been trying to mimic what was done in this discussion to change the text on the "Take the Quiz" button in a Canvas quiz. Many of our quizzes are not actual quizzes; rather, just assignments that are better suited to be delivered as a "quiz" in Canvas.
That being the case, I am looking to change the "Take the Quiz" text on the quiz button to say something different, like "Begin Assignment".
I am tech savvy, but a novice in JavaScript. I have admin access to be able to upload custom JavaScript files to Canvas. Our instance currently has custom JavaScript and CSS files included.
I've tried updating the code and reuploading the JavaScript file in the theme editor, but what I've tried hasn't worked. Either my code is wrong, or I'm adding it incorrectly to the JavaScript file. Code:
- $(document).ready(function(){
- $('a.btn.btn-primary.take_quiz_link').text('Begin');
- });
Can any of you point me in the right direction here? Any advice is much appreciated.
Thanks,
Jake
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.