Skip to main content

Bug Tracker

Side navigation

#7813 closed bug (duplicate)

Opened December 21, 2010 11:50AM UTC

Closed December 21, 2010 12:00PM UTC

Last modified December 21, 2010 12:00PM UTC

problems with selector for multiple checkboxes ?

Reported by: Owned by:
Priority: undecided Milestone: 1.6
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:

Hi, I founded that using the following html :

<div id="test">
    <input type="checkbox" name="multipage[1]" value="" />

I was able to enable the checkbox using

$("#test").find("input[name=multipage[1]]").attr('checked', true);

and jquery-1.4.2.min.js

Now as of jquery-1.4.4.min.js

I tried the folowing codes without success :

$("#test").find("input[name=multipage[1]]").attr('checked', true);
$("#test").find("input[name=multipage\\\\[1\\\\]]").attr('checked', true);

Is this a bug or did I not write it correctly ?

Thanxs for your answer.

Attachments (0)
Change History (2)

Changed December 21, 2010 12:00PM UTC by jitter comment:1

resolution: → duplicate
status: newclosed

Thanks for taking the time to contribute to the jQuery project by writing a bug report.

This is a known bug introduced with jQuery 1.4.4. Check the ticket mentioned below for progress on this issue.

You can use the recommended syntax instead and quote the attribute value like this

$("#test").find("input[name='multipage[1]']").attr('checked', true);

Changed December 21, 2010 12:00PM UTC by jitter comment:2

Duplicate of #7539.