-2

In order to uncheck a radio button with Jquery...

I use this code :

$('input[type=radio][name=belvg_customerattributes_particulier]:checked').prop("checked", false);

This code works but visualy I still see the button on checked.

I tried this :

$('input[type=radio][name=belvg_customerattributes_particulier]:checked').prop("checked", false).checkboxradio("refresh");

But in vain..

Please help me !

Sébastien
  • 77
  • 1
  • 2

2 Answers2

0

So it works... I have investigated and I have seen a class before the imput.

So my radio was checked but not visualy.

For your information I have added code to remove the class in this span with :

$("#uniform-belvg_customerattributes_particulier_0 span.checked").toggleClass("checked");

Thanks !

Sébastien
  • 77
  • 1
  • 2
-1

Please use $(‘#checkbox’).prop(‘checked’, false).uniform(); I don’t know exactly how it works. But it works for me to uncheck the checkbox.

Hay Thi
  • 145
  • 1
  • 3