Skip to main content

Bug Tracker

Side navigation

#13736 closed bug (duplicate)

Opened April 05, 2013 12:45PM UTC

Closed April 05, 2013 05:59PM UTC

CheckBox Error

Reported by: stanislav.victorovich@gmail.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:
Description

Hello, jQuery v1.9.1 have problem with checkbox.

When we have one checkbox that check other checkboxes, that is work only to steps.

$(document).ready(function(){

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

if ($("#all_check").is(':checked')) {

$('input[name*=checkbox]').attr('checked', true);

} else {

$('input[name*=checkbox]').attr('checked', false);

}

});

});

Attachments (0)
Change History (4)

Changed April 05, 2013 12:46PM UTC by dmethvin comment:1

resolution: → notabug
status: newclosed

Please ask for help on the forum.

Changed April 05, 2013 12:53PM UTC by stanislav.victorovich@gmail.com comment:2

<form action="" id="example_group3">

<input type="checkbox" class="example_check" name="cbname3[]" value="1" />

<input type="checkbox" class="example_check" name="cbname3[]" value="2" />

Отметить все:<input type="checkbox" name="cbname3[]" value="14" id="example_maincb" />

</form>

<script type="text/javascript">

$(document).ready( function() {

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

if($('#example_maincb').is(':checked')){

$('.example_check:enabled').attr('checked', true);

} else {

$('.example_check:enabled').attr('checked', false);

}

});

});

</script>

Try this example. Click to #example_maincb more then two times.

When i use jQuery 1.8 its work correct.

Changed April 05, 2013 05:59PM UTC by m_gol comment:3

resolution: notabug
status: closedreopened

Changed April 05, 2013 05:59PM UTC by m_gol comment:4

resolution: → duplicate
status: reopenedclosed

Duplicate of #13667.