开发者

How to apply click event for option button using Zend form

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜