Search code examples
javascriptjquerydrop-down-menujqtransform

jqTransform Update Select Options


I'm dynamically altering a select list's options. I am using the jqTransform plugin. It won't update itself automatically, which I didn't expect it would, but I can find a method for updating the display. I can't even find a method for removing it completely.

What I'd like is to find a method such as formelement.jqTransformUpdate() that will fix this. Any ideas?


Solution

  • I know it's an old question, but maybe it helps someone. I couldn't find the answer, so I looked into jqtransform.js code.

    Just comment this line:

    if($select.hasClass('jqTransformHidden')) {return;}
    

    And then, after "onchange" event run:

    $('#container select').jqTransSelect();