jquery chosen for select fields?

jquery chosen for select fields?

7wonders7wonders Posts: 3Questions: 0Answers: 0
edited August 2013 in Editor
Is it possible to use the jquery chosen plugin on editor select fields?

I have tried adding the chzn-select attribute using "attr" option for editor

"attr": {
"class": "chzn-select"
}

which adds the class as expected but doesn’t trigger the chosen plugin as does with my other select fields. Any ideas?

Replies

  • allanallan Posts: 63,532Questions: 1Answers: 10,475 Site admin
    Yes - it will be possible, but you'd need to use a plug-in field type for chosen. There is a tutorial on creating field types here: https://editor.datatables.net/tutorials/field_types

    Allan
This discussion has been closed.