Lutrasoft / Fancyform

jQuery plugin for transforming HTML form elements
http://www.lutrasoft.nl/jQuery/fancyform/
37 stars 22 forks source link

Dependent dropdowns problem #11

Closed mjpramos closed 9 years ago

mjpramos commented 9 years ago

Hi, I'm using facyform on an app I'm building. On the main page I have 2 dependent dropdowns. The 1st selectbox is filled on page load and the plugin works, but since the 2nd selectbox is only populated after selecting an option from the 1st, it doesn't get transformed. I tried calling the transformSelect method on the change event of the 1st but with no success. Is there anything I'm missing?

Thanks

tsukasa1989 commented 9 years ago

Hello,

If you have initialized the transformSelect, you can not initialize it again. If you change te values of the SELECT you need a repaint

$( "select" ).transformSelect( "repaint" );

Good luck.

mjpramos commented 9 years ago

Hi tsukasa! That worked like a charm! Thank you so much.