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 8883093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:43:55+00:00 2026-06-14T20:43:55+00:00

JQuery does not seem to work in my Symfony2 project. I use these 2

  • 0

JQuery does not seem to work in my Symfony2 project.

I use these 2 snippets to test JQuery in a twig html file and none of them is working:

    {% block myJavascript %}
    <script type="text/javascript">

    if (typeof jQuery != 'undefined') {
        alert('hi'); }


     $(document).ready(function() {
        alert('hi');
     });
    </script>
    {% endblock %}

This code alone is working meaning that Javascript is working

     alert('hi');

I have in my app/resources/view/base.html.twig

         <link rel="javascript" href="{{ asset('bundles/etiennepsav/js/jquery-1.8.3.js') }}" type="text/javascript" media="all" />

Referring to the jQuery files located in :

   app/src/Etienne/Bundle/PsavBundle/Resources/Public/js/jquery-1.8.3.js

Any ideas what’s wrong?
Is there a special config to set?

  • 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-14T20:43:56+00:00Added an answer on June 14, 2026 at 8:43 pm

    Javascript needs a <script> tag not a <link> tag in order to load in a page

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

Sidebar

Related Questions

I use Jquery fadeIn effect, but it does not work well in Chrome (neither
jQuery tabs does not seem to work with the following code, using the 1.8.16
jQuery $.ajax() does not seem to work correctly with IE8 but it is working
Does anyone know why .hide(normal) does not seem to be working in jQuery 1.4.2?
Jquery does not work on the Internet explorer . However it runs on other
I found out jQuery does not always create the correct DOM from an HTML
Why this delay of Jquery animation does not work as it should be? $(
Hi my jQuery callback function does not work. Competitor = { addCompetitorForSave: function($data) {
I have a button that does not work in jquery. A button is passed
Thsi does not seem to work: $msg=Your changes have been saved successfully; $view=include('application/view/admin/cms/_slides-current.php'); $return_array=array('success'=>true,

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.