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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:20:14+00:00 2026-05-26T08:20:14+00:00

When I reference jQuery, using the first script reference, every thing is fine, however

  • 0

When I reference jQuery, using the first script reference, every thing is fine, however if I just replace the closing tag with />, jQuery works fine!!, however, a java script library domtab.js stop working. that applies on FF and IE.

Why?, I don’t think it is a bug that in all browsers, there is something I miss.

    <!--ok-->
    <script type="text/javascript" language="javascript" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" ></script>

    <!--Replace-->
    <script type="text/javascript" language="javascript" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" />

    <script type="text/javascript" src="/domtab.js"></script>

Thanks

  • 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-05-26T08:20:15+00:00Added an answer on May 26, 2026 at 8:20 am

    You cannot self-close a script tag. You have to use </script>.

    If you use />, the following text will be interpreted as the script source up to the next occurrence of </script>. That’s why your second script does not work.

    The HTML specification denotes script element end tags as required. This is because HTML character escaping rules are not in effect for script contents (i.e. you can use otherwise reserved characters like < or & without encoding them as &lt; or &amp;). As a result, a fixed “end contents” marker is required, which just happens to be </script>.

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

Sidebar

Related Questions

Using jQuery, is there a way to select all tag that reference a specific
I am using this JQuery Ajax Voting system guide as a rough reference but
The following code works just fine in IE, FF, Chrome and Safari, but I
I'm using an API that returns a JQuery Object which is a reference to
I'm using jQuery with the validators plugin. I would like to replace the required
This is in reference to jQuery 1.3 and jQuery Form Plug 2.25. Hopefully this
I am trying to reference the jQuery library in my master page like so:
I am using jQuery to load the search results from a php class when
First, I know that there are jQuery plugins for search suggest. The reason I'm
Currently, I have a jqueryUI.js file referenced through a <script> tag. I have several

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.