Error Course Page
-
If u have same problem like me, is this how to fix it:
Problem:
Found 2 elements with non-unique id #_tutor_nonce: <form class=”tutor-enrol-course-form” method=”post”> <input type=”hidden” id=”_tutor_nonce” name=”_tutor_nonce” value=”e8469416a7″><input type=”hidden” name=”_wp_http_referer”
The problem is due to duplicate id so it generates a warning error on the browser.
How to fix:
Use this method, this is a temporary solution.
<script>
document.addEventListener(‘DOMContentLoaded’, function() {
var elements = document.querySelectorAll(‘#tutor_nonce’); for (var i = 1; i < elements.length; i++) { elements[i].id = ‘_tutor_nonce‘ + i;
}
});
</script>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Error Course Page’ is closed to new replies.