Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8477427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:27:56+00:00 2026-06-10T18:27:56+00:00

TypeError: ‘undefined’ is not a function (evaluating ‘$(document)’) I know there is one other

  • 0
TypeError: 'undefined' is not a function (evaluating '$(document)') 

I know there is one other topic with a similar issue, but trying the solutions in there didn’t resolve the problem.

I’m using WordPress 3.1.2 and I’m trying to get it to load a page, but something in WordPress or what I’m typing doesn’t seem to let it work.

<div id=test>
 <b>Great scott</B>
</div>

<div id=recall>
  <b>see you at the party</b>
</div>
<script src=jquery.js>
</script>

<script>
  $(#test).load(search.php);
</script>

That’s the code I’m trying to use, it works on a different WP site I worked on, creating the prototype so to speak.

The problem seems to come from pointing it to the jQuery file because not even alerts work. However, when I take out the src the alerts appear as normal.

I also used the jQuery’s tutorial on jQuery’s website to make sure the jQuery file itself was working and that the page ran the jQuery on there perfectly.

I’ve tried using JQuery() instead of $(), but when I tried that, search.php still doesn’t load and there is no error produced in the error log either (I’ve been using Firefox to test it)

I also tried wrapping it in a function like similar questions have suggestion but that flags up either the same error or no error at all.

Is there a way to fix this or work around this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T18:27:58+00:00Added an answer on June 10, 2026 at 6:27 pm

    You need quotes around the #test:

    $('#test').load(search.php);
    

    Undefined means the selectors hasn’t found anything.

    For more about jQuery selectors, look here: http://api.jquery.com/category/selectors

    When debugging – it can help to use firebug in firefox, or the developer console in chrome… and you can type in the javascript directly to see if it runs, or even something like $(‘#test’) to see what is being selected.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

TypeError: Result of expression 'this._configure' [undefined] is not a function. I keep running into
TypeError: $().html(This dialog will show every time!).dialog is not a function This is the
I keep getting this error: TypeError: Error #1006: setSize is not a function. at
I get the following error uncaught typeerror : object is not a function in
Unlike previous questions like TypeError: argument of type 'int' is not iterable there doesn't
I got this error in Firefox: TypeError: $(#main-CNTR).on is not a function. And this
Firebug indicates I have a TypeError: a.ownerDocument is undefined with this code: $(this).text('Updated!').fadeOut('900', function()
I'm getting the error: Uncaught TypeError: Cannot read property 'constructor' of undefined When declaring
I get the error: TypeError: 'person' is an invalid keyword argument for this function
Google Chrome is throwing Uncaught TypeError: Cannot set property 'isDown' of undefined but it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.