> 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
Sigurd
_______________________________________________
Phpgroupware-developers mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/phpgroupware-developers