Buttonset and original input value

Buttonset and original input value

Hi,

I've used the buttonset method to initialize several input:checkbox but I've got some troubles with getting the list of actual checked buttons after initialization. The input does not take the values of the label (aria-pressed) but when I submit the form, values are right. Uh ?

So if I try :
  1. $("input:checkbox[checked='checked']");
I've got the original selection of my checkbox.

If I try :
  1. $("[name^='checkbox_'][aria-pressed='true']");
I've got the actual selection of labels pressed and I have to use the htmlFor JS property to reach the input and finally get the value.

Is there something I'm doing wrong ?

I've also tried to use the refresh method but it does not refresh input status against labels.

Max