Bug Tracker

Modify

Ticket #11888 (closed bug: cantfix)

Opened 12 months ago

Last modified 11 months ago

checkbox remove "checked" dont work in chrome 20

Reported by: evilmoe@… Owned by: evilmoe@…
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocking: Blocked by:

Description

I use this code:

$('input:checkbox[name=select_all]').click(function(){	
		status = $(this).prop("checked");
		$('input[name^=selector]').each(function () {
			//alert(status);
			if(status)
				//$(this).prop("checked", status);
				this.checked = true;
			else
				 this.checked = false;
		});
	});

This code work in FF but not in Chrome 20. When i use the "prop" i have the same problem.

Change History

comment:1 follow-up: ↓ 3 Changed 12 months ago by rwaldron

  • Owner set to evilmoe@…
  • Status changed from new to pending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket!

Additionally, be sure to test against the "jQuery (edge)" version to ensure the issue still exists. To get you started, use this boilerplate:  http://jsfiddle.net/FrKyN/

comment:2 Changed 12 months ago by anonymous

Here:  http://jsfiddle.net/FrKyN/362/ Dont work in Chrome 20 but in FF.

comment:3 in reply to: ↑ 1 Changed 12 months ago by anonymous

Replying to rwaldron:

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket!

Additionally, be sure to test against the "jQuery (edge)" version to ensure the issue still exists. To get you started, use this boilerplate:  http://jsfiddle.net/FrKyN/

 http://jsfiddle.net/FrKyN/362/

comment:4 Changed 11 months ago by anonymous

When it will be fixed?

comment:5 Changed 11 months ago by dmethvin

  • Status changed from pending to open

I can repro on Chrome 19, I tried to simplify it a bit but it went away. Since it only happens on Chrome you should report it there. We will need to triage the bug, so we can't answer the "when".

comment:6 Changed 11 months ago by evilmoe@…

I did a workaround for this:  http://jsfiddle.net/FrKyN/379/ I hope it will be fixed soon. I dont know why it doesnt works with a variable.

comment:7 Changed 11 months ago by dmethvin

  • Status changed from open to closed
  • Resolution set to cantfix

This is a bug with Chrome.  http://jsfiddle.net/FrKyN/362/

Something is special about the global status variable. It's no jQuery. Report this to Chrome.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.