clear_on_hide still not working right after 1.4.2 update
-
I sent this addition to my last message, but added it after you marked the problem as solved. I’ve just installed the 1.4.2 update that had the newer clear_on_hide code, but it still has the same main problem as before.
I was playing around with your code, and I added a
console.log($group.attr('id'));
to get the id of the group it was being called on, and added aconsole.log($inputs);
, and figured out that it was activating theif ($group.attr('data-clear_on_hide') !== undefined) {
after the group was being hidden, so.not(':button, :submit, :reset, :hidden')
will never find the inputs in the group because they’re already hidden. So either you need to move that function before you hide the inputs in the group, or change the code to.not(':button, :submit, :reset')
. After the change, then everything clears correctly.Also, you could also change
if ($group.attr('data-clear_on_hide') !== undefined)
toif ($group.data('clear_on_hide') !== undefined)
, but that doesn’t change the functionality of the code.
- The topic ‘clear_on_hide still not working right after 1.4.2 update’ is closed to new replies.