-
Notifications
You must be signed in to change notification settings - Fork 336
Cloned Select Boxes don't update #96
Comments
Hey Peter, What you need to do is call Uniform on the new selects that are generated. Uniform cannot detect newly created form elements. As it is right now, Uniform doesn't work well to be called twice on elements (preventing you from just calling $("select").uniform() again), but in 2.0 which will be released pretty soon i've made it possible to do that without issue. |
Thanks for the reply. And for the great form skinning plugin...but now I have to get it to work with my own form situation... Sorry, but I'm not sure how I call Uniform on the new selects. Where and what code would I place in my form? If the 2.0 comes out, this will be all moot correct? When is 2.0 coming? Peter |
Hey peter, Ideally in the plugin that lets you clone selects it would return the newly created select object to you somewhere. You could store that as a variable, and then call $(newSelect).uniform(); for example. In 2.0 all you'd need to do is call $("select").uniform() and it will ignore the already "uniformed" elements. 2.0 has been mostly written, but it needs testing. I am spending my weekends working on it currently. Probably 1-2 weeks out still. There is a beta version you can use at your own risk if you switch to the "refactor" branch of this project. |
For anyone googling for this issue (like I was), it has become an opened issue again with a workaround to solve the problem found here #340 |
Let me preface this by saying I am below novice level when it comes to jquery or any kind of javascript programming. So forgive me if I ask a few "duh" questions. I may need to be handheld a bit.
I am working on a form that uses a multiple field extender script that clones form elements. When the user clicks to add in a new set of cloned form elements, particularly cloned select boxes, the options can be selected but do not update in the actual select box after a selection is made. I know the multiple field extender script works because it works fine if I disable Uniform. How do I get this to work so that cloned select boxes display what is selected? I really like Uniform and I don't want to go back to the ugly default form.
Here is where my work in progress form is - http://www.pentco.com/order.php
Help?
The text was updated successfully, but these errors were encountered: