JQUERY! It does everything, EVERY php coder should be looking at it. :-) ed
On Feb 1, 2008 3:05 AM, Michael B Allen <[EMAIL PROTECTED]> wrote: > I'm familiar with DOM, DHTML, JavaScript, etc but I'm not sure what > the best way to do dynamic forms is. > > Basically I just want to dynamically insert or remove one element in a > form. The form is normally just a select with a submit button > immediately to it's right. But depending on what option in the select > is selected, I want another select to be inserted between the first > select and the button. > > So it's either <select1><button> or <select1><select2><button>. > > I would be perfectly happy with toggling the style visibility: visible > or visibility: hidden but this doesn't change the position of the > button. It always appears off to the right. I want the form to > re-pack. > > Or should I use DOM calls? > > What's the best, most portable way to do this? > > Mike > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -- IM/iChat: ejpusa Links: http://del.icio.us/ejpusa Blog: http://www.utopiaparkway.com Follow me: http://www.twitter.com/ejpusa Karma: http://www.coderswithconscience.com Projects: http://flickr.com/photos/[EMAIL PROTECTED]/ Store: http://astore.amazon.com/httpwwwutopic-20
_______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php