harvesthq/chosen — Issue #500: Using chosen with []
Author: abetam
Created: 2012-02-18 03:19:39+00:00
State: open

This has been discussed and solved before. I have made the changes accordingly and it works as advertised for single id. My problems is, using the brackets for array input.

Participant #1

bla

Participant #2

bla

I know the easiest fix is to switch state[] to state_1, state_2, etc ... unfortunately, i have arbitrary number of entries, as the table is dynamic. Using the recommended .replace(/.|\:|\[|\]/g) made it possible to apply chzn-select to bracketed ID but the chosen script replaced state[] to state[]_chzn and this made caused state[1] = state[2] (state[]_chzn (for 1st row) equals to state[]_chzn (for 2nd row))

Has anyone successfully, apply chosen for array input?