I'm having issues using the chosen library.
In a .js file I have
var sel = document.createElement("select");
sel.setAttribute( "class" , "chosen" );
Then I attach sel to the page, etc etc.
Point is, it doesn't apply the chosen prettiness. Any help / pointers are appreciated.
after some more searching, I found a solution. This is a repeat of Applying Chosen.js to dynamically created dropdown