开发者

How to apply click event for option button using Zend form

开发者 https://www.devze.com 2023-03-23 12:12 出处:网络
I am new to zend, Be开发者_Python百科low is my piece of code, $TEST= new Zend_Form_Element_Radio(\'test\', array(

I am new to zend, Be开发者_Python百科low is my piece of code,

    $TEST   = new Zend_Form_Element_Radio('test', array(
        'label' => 'Send:*',
        'value' => $data,
        'multiOptions' => array(0 => 'TEST1', 1 => 'TEST2',2 => 'TEST3 '),
    ));
        $this->addElement($TEST);

Here i Want to apply onclick event for above 3 option button respectively.Is it possible ?.Kindly help me on this


You would probably be best off using jQuery for this? E.g.:

$(function() {
    $("#test").click(function(){
        // whatever you need to do 
    });
});
0

精彩评论

暂无评论...
验证码 换一张
取 消