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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:00:39+00:00 2026-05-24T13:00:39+00:00

In jquery 1.4.2 this was a valid selector: $(‘input[name=test[0]]’) in jquery 1.6.2 it is

  • 0

In jquery 1.4.2 this was a valid selector:

$('input[name=test[0]]')

in jquery 1.6.2 it is not a valid selector, the docs state to escape special characters with \.

my question is, in what version did this happen, and can someone provide a link to a discussion of this change?

  • 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-24T13:00:40+00:00Added an answer on May 24, 2026 at 1:00 pm

    The selector you posted does not work in jQuery 1.4.4, but does work in 1.4.2

    See here for complete tests: http://jsfiddle.net/YPd4J/

    Summary:

    • input[name=test[0]] error in 1.6.2, doesn’t work in 1.4.4, works in 1.4.2
    • input[name="test[0]"] works in all versions
    • input[name=test\\[0\\]] works in 1.6.2 & 1.4.2, not in 1.4.4
    • input[name="test\\[0\\]"] works in all versions

    I can remember the advise regarding escaping meta-characters been in the documentation as long as I can remember (and I’ve been using jQuery since 1.3.x)… maybe it was never officially supported, but just happened to work.

    Edit: Did the tests for 1.4.4, and then saw you actually wrote 1.4.2… tests updated 😛

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

Sidebar

Related Questions

is this a valid JQuery usage pattern to : <script type=text/javascript> $(body).prepend('<input type=hidden id=error
Is this JQuery valid? $([name=enableTooltip]:checked) What does it does?
Is this a valid jQuery syntax :$('#id')[0];
Is this a valid url parameter in jquery.ajax(), <script type=text/javascript> $(document).ready(function() { getRecordspage(); });
I'm trying to use the autocomplete plugin for jQuery (this one http://docs.jquery.com/Plugins/Autocomplete ). My
I am trying to select all my textboxes with... $(input[@type=text]) From the jquery docs
Why does this jQuery not drop the first time it is dropped? $(.drag).draggable({ revert:
Is this valid jQuery? Or have I mixed it up with regular JavaScript too
IE doesn't like the sharp symbol in the line below jQuery(this).css('background-color','#' + jQuery(this).prev().val()); so
I have the following jquery code: jQuery(function(){ jQuery(select#rooms).change(function(){ var options = ''; jQuery.getJSON(/admin/selection.php,{id: jQuery(this).val(),

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.