Mam duży problem z którym nie mogę sobię poradzić. Zbudowałem stronę na której wykorzystywana jest masa formularzy, które ostylowałem przy pomocy javasctiptowego Niceforms (można o nim poczytać na http://www.emblematiq.com/lab/niceforms/).
Cytat
How Does It Work?
The idea is simple: since normal input fields (including radio buttons, checkboxes, textareas, etc) can only be styled to a small degree, they have to be hidden and their visual appearance replaced with similar working, new, fully customizable constructs. In theory, that doesn't sound really complicated. But from theory to practice there is a long way.
Starting with the basic XHTML code for a web form, Niceforms parses the DOM tree, gets all the input fields, hides them, and positions their new graphical appearance in place. All this is done while preserving the date transfer and selection features of the regular form. Everything is done via javascript.
The idea is simple: since normal input fields (including radio buttons, checkboxes, textareas, etc) can only be styled to a small degree, they have to be hidden and their visual appearance replaced with similar working, new, fully customizable constructs. In theory, that doesn't sound really complicated. But from theory to practice there is a long way.
Starting with the basic XHTML code for a web form, Niceforms parses the DOM tree, gets all the input fields, hides them, and positions their new graphical appearance in place. All this is done while preserving the date transfer and selection features of the regular form. Everything is done via javascript.
Ale po zakończeniu pracy, uświadomiłem sobie, że w tym momencie nie możliwe stało się dynamiczne zmienianie wartości inputów select (musisz wybrać opcje z pierwszego inputu, aby mieć możliwość wyboru opcji z drugiego)
Tutaj przedstawiłem o co mi dokładnie chodzi:
Jak powinno działać:
http://shdw.pl/tmp/niceforms-problem/good.html
Ostylowana, niedziałająca forma:
http://shdw.pl/tmp/niceforms-problem/wrong.html
Wydaje mi się, że w rzeczywistości inputy te działają, lecz nie można tego zobaczyć, ponieważ te 'prawdziwe', są ukrytę pod spodem tych ostylowanych, które niestety nie zmieniają swojej wartości.
Czy ktoś jest w stanie pomóc mi rozwiązać ten problem? Jak zmienić dynamicznie wartość inputów bez przeładowania strony?
Dziękuje i pozdrawiam,
Kamil