Show
Ignore:
Timestamp:
11/16/04 12:04:05 (4 years ago)
Author:
schst
Message:

getElementByName() now searches in containers like groups

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/examples/example_element_group.php

    r117 r168  
    109109        'clicklabel'    =>  'yes', 
    110110        'value'         =>  'yes', 
     111        'id'            =>  'mySecure' 
    111112    ); 
    112113     
     
    140141    // use auto-validation 
    141142    $form->setAutoValidate( 'save' ); 
     143 
     144    /* 
     145    $foo = $form->getElementByName('area'); 
     146    echo $foo->serialize(); 
     147     
     148    $bar = $form->getElementById('mySecure'); 
     149    echo $bar->serialize(); 
     150    */ 
    142151 
    143152    // serialize the elements