Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The recommended way to change "checked" status for checkbox is using .prop() instead of .attr(). See jQuery .prop() function. Otherwise the checkbox ui status may not be updated event the checked attribute is correctly set on the html element.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2827710-3-attr-to-prop.patch | 2.04 KB | joelpittet |
Comments
Comment #2
joelpittet@qichanghai, there is no .prop() for jQuery 1.4 which is core drupal. I've fixed this in VBO by putting in a quick polyfill
https://www.drupal.org/node/2608360
Maybe the same approach could work here too?
Comment #3
joelpittetHere's the patch
Comment #5
hansfn CreditAttribution: hansfn as a volunteer commentedThx for the patch - committed.