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

  • SEARCH
  • Home
  • 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 8132141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:16:30+00:00 2026-06-06T09:16:30+00:00

I apologize for my lack of jquery knowledge. I’m using jquery 1.6.2, and trying

  • 0

I apologize for my lack of jquery knowledge. I’m using jquery 1.6.2, and trying to attach a jquery function to an ActionLink. Here is my jquery function:

    <script type="text/javascript">
    $("addOperation").click(function () {
       $.ajax({
          url: this.href,
          cache: false,
          success: function (html) { $("#editor_rows").append(html); }
       });
       return false;
    });
    </script>

When I navigate to the page containing the script, the debugger comes back with the following:

    Microsoft JScript runtime error: '$' is undefined

This is pointing at the first occurence of ‘$’. To me, this sounds like it’s not recognizing that this is a jquery call, but I haven’t had trouble with this in the past. Not to mention, MVC3 should bundle and render all of the jscript files before the app loads. Any suggestions for me?

  • 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-06T09:16:31+00:00Added an answer on June 6, 2026 at 9:16 am
    1. Make sure your jquery script tag is above your script.

    2. Wrap your code in the document.ready event:

    E.g. for 1

      <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
      <script src="/path/to/your.script"></script>
    

    E.g. for 2

    $(document).ready(function() { 
         //Your code here
    });
    

    or shorter:

    $(function() { 
           //Your code here
    });
    

    This will ensure all the JavaScript has loaded before your code is executed.

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

Sidebar

Related Questions

I apologize upfront for my lack of jquery knowledge. In this website I am
I apologize in advance for my lack of knowledge regarding stack smashing in C.
First off, I must apologize for my lack of knowledge on the subject. I'm
I apologize in advance for my lack of iOS SDK knowledge, I am an
I apologize in advance for my lack of knowledge on this subject; I've looked
First I want to apologize for my lack of knowledge in programming in general.
Slightly unorthodox question here: I'm currently trying to break an Apache with a handful
(Am new to web programming, so apologies for any lack of rudimentary knowledge.) My
Afternoon, I'm trying to implement a hashtable in Java, using K mod 13 as
This might be long and I apologize up front, I can get wordy trying

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.