[nycphp-talk] Dynamic Form Elements
Edward Potter
edwardpotter at gmail.com
Tue Feb 12 21:10:01 EST 2008
JQUERY! It does everything, EVERY php coder should be looking at it. :-)
ed
On Feb 1, 2008 3:05 AM, Michael B Allen <ioplex at gmail.com> 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/86842405@N00/
Store: http://astore.amazon.com/httpwwwutopic-20
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20080212/0bf1da52/attachment.html>
More information about the talk
mailing list