Skip to main content

Bug Tracker

Side navigation

#13863 closed bug (duplicate)

Opened May 07, 2013 09:07AM UTC

Closed May 07, 2013 03:01PM UTC

checkbox bug

Reported by: lou_jack@pchome.com.tw Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:
Description

hi,

first time i click the sel_all checkbox all checkbox will change to checked,

then, i click sell_all checkbox twice again, it dose't work.

(browser: chrome 26.0)

here is the example code:

<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>

<script>

$(document).ready(function(){

$("#sel_all").click(function(){

$("input[type=checkbox]").attr("checked", $(this).is(":checked"));

});

});

</script>

<input type="checkbox" id="sel_all">select all<br>

<input type="checkbox">

<input type="checkbox">

<input type="checkbox">

<input type="checkbox">

<input type="checkbox">

i had changeed jquery-1.9.1.min.js to jquery-1.8.2.min.js, then it works well.

Attachments (0)
Change History (1)

Changed May 07, 2013 03:01PM UTC by timmywil comment:1

resolution: → duplicate
status: newclosed

Duplicate of #13245.