How to filter entries by checkboxes using Sprig
Checkbox input field names should be in array format (not specific to Sprig), so I expect this should work.
&lt;input sprig type=&quot;checkbox&quot; class=&quot;filter_checkbox&quot; name=&quot;newsCat[]&quot; id=&quot;checkbox_{{ category.id }}&quot; value=&quot;{{ category.id }}&quot; {{ category.id in newsCat ? 'checked' : '' }}&gt;