Replies: 1 comment
-
This is a breaking change in jQuery 3.0.0; more info here: https://jquery.com/upgrade-guide/3.0/#breaking-change-removeattr-no-longer-sets-properties-to-false |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Buenos días saludos hice una actualización de JQuery 1.4.2 a 3.6.0
y el seleccionar todos los checkbox deja de funcionar cuando selecciono uno y luego le doy para seleccionar todos y desmarcar y este sigue marcado.
`
<title>New document</title> <script type="text/javascript" src="https://code.jquery.com/jquery-3.6.0.js"></script> <script language="javascript"> $(document).ready(function(){ $(".check_todos").click(function(event){ if($(this).is(":checked")) { $(".ck:checkbox:not(:checked)").attr("checked", "checked"); }else{ $(".ck:checkbox:checked").removeAttr("checked"); } }); }); </script>Seleccionar todos
elemento 1
`elemento 2
elemento 3
elemento 4
elemento 5
Beta Was this translation helpful? Give feedback.
All reactions