You do not need to apologize. What you need to do is show us (the people trying to help you) ALL THE CODE relevant to the problem:
- The relevant HTML
- The relevant Test Case steps/code
- ANYTHING else you think might be relevant.
And don’t change anything without telling us.
You now have an error in JavaScript. This is a big surprise. Where did that JavaScript come from? Was it always part of your code? We need to see the relevant Test Case steps/code
If you have not read it before, please read this: