On Mon, 2006-04-10 at 11:31 +0200, Sigurd Nes wrote:
>  > document.all is IE only.
> > 
> > Try
> > 
> > <script type="text/javascript">
> > //<[CDATA[
> >     /**
> >     * TODO Document function so others understand it :)
> >     */
> >     function modplace(form)
> >     {
> >             if ( !document.getElementById )
> >             {
> >                     return false; // doesn't support DOM so bailout
> >             }
> >             var val = form.place_id.value;
> >             var div1 = document.getElementById('div1');
> >             if(val == "new_place")
> >             {
> >                     div1.style.display = 'block';
> >             }
> >             else
> >             {
> >                     div1.style.display = 'none';
> >             }
> >     }
> > //]]
> 
> 
> It worked (on both head and .16) - thanks
> 

no problem and enjoy :)

Cheers

Dave



_______________________________________________
Phpgroupware-developers mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/phpgroupware-developers

Reply via email to