Opened 11 years ago
Closed 11 years ago
#11888 closed bug (cantfix)
checkbox remove "checked" dont work in chrome 20
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
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 (7)
comment:1 follow-up: 3 Changed 11 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:2 Changed 11 years ago by
Here: http://jsfiddle.net/FrKyN/362/ Dont work in Chrome 20 but in FF.
comment:3 Changed 11 years ago by
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/
comment:5 Changed 11 years ago by
Status: | pending → 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 years ago by
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 years ago by
Resolution: | → cantfix |
---|---|
Status: | open → closed |
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.
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/