Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 349
Brad Wilkie Avatar asked Oct 10 '22 06:10

Brad Wilkie


1 Answers

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();
like image 84
c3nt Avatar answered Oct 17 '22 22:10

c3nt