div class=qq_selected_terms id=qq_selected_prcdivfind me$#qq_selected_prchtml2822000;$qq_pr_count spantext0;qq_selected_terms;code nothing work what is my problem
Based on the code you provided, it seems like you are trying to update the HTML content of an element with the ID "qq_selected_prc" and set it to the value '282,2000'. Additionally, you are trying to update the text content of an element with the class "qq_pr_count" and set it to '0'. Finally, you are calling the function "qq_selected_terms()".
If the code is not working, there could be multiple reasons for it. Here are a few things you can check:
-
Make sure you have included the jQuery library in your HTML file. You can do this by adding the following line before your JavaScript code:
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> -
Ensure that the code is executed after the DOM (Document Object Model) has fully loaded. You can wrap your code inside the
$(document).ready()function to ensure it runs when the DOM is ready:$(document).ready(function() { // Your code here }); -
Double-check that the element with the ID "qq_selected_prc" and the element with the class "qq_pr_count" exist in your HTML markup. Verify that their IDs and classes are correct.
-
Check for any JavaScript errors in the browser console. Open the browser's developer tools (usually by pressing F12), navigate to the "Console" tab, and look for any error messages that might provide clues about the issue.
By addressing these possible issues, you should be able to identify and resolve the problem with your code
原文地址: http://www.cveoy.top/t/topic/iyTV 著作权归作者所有。请勿转载和采集!