Hi all,
Can anybody tell me how do i give my form a name as i need to use it in a javascript function?
Thanks in advance
Hi all,
Can anybody tell me how do i give my form a name as i need to use it in a javascript function?
Thanks in advance
You can’t use the ID? If not, try this:
$form=$this->beginWidget('CActiveForm', array(
'id'=>'lost-password-form',
'htmlOptions' => array(
'name' => 'lost-password',
),