$ Is not a function solved

Source: Internet
Author: User

I checked the information online and tried to find the reason.

1) Explanation on the Internet:

If you are trying to add your own jquery code to WordPress, and have had the error "$ is not a function" show up on firebug, here is the fix:

Convert all dollar signs ($) to 'jquery'

The dollar sign is reserved in WordPress for the prototype library, which is why it errors out. For example, instead:

123 $().ready(function() {   $("#select_me").show();});

Change it:

123 jQuery().ready(function() {   jQuery("#select_me").show();});

2) according to the above method, the error MSG becomes: jquery (***). dialog is not a function.

One afternoon's effort may be caused by a JS conflict. A line of code is deleted and the following line is found. It was not a method conflict, but a reference conflict ?!

"<SCRIPT src =" <session: constant name = 'textpath'/>/JS/jquery-1.8.5/JS/jquery-1.4.2.min.js "type =" text/JavaScript "> </SCRIPT> ". in the JSP of the internal frame, it is OK to delete a row. it may be that the external file has been referenced, and the jquery method is normal after deletion.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.