kflorence/jquery-deserialize

Lone checkboxes never checked

yjo opened this issue · 2 comments

yjo commented
<input type="checkbox" name="mybox" value="myval"/>

Is not correctly checked by the call:

$(selector).deserialize("mybox=myval");

But bizarrely it works if I add another checkbox with the same name:

<input type="checkbox" name="mybox" value="myval"/>
<input type="checkbox" name="mybox" value="myotherval"/>

Thanks, I'll take a look at this shortly.

Landed in version 1.2.1: e821ac2

Thanks!