Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorenser
     
    Hi I am using following code in view
    <?=$form_options_helper->select('mobile_operator', 'id', $mobileOperators);?>
    How can I add attributes to the select element? For example to add some javascript code on onchange event.
    So the select element will look in HTML something like
    <select ... onchage="someFunction()">
    ...
    </select>
    • CommentAuthorinsanet
     

    :

      $form_options_helper->select('mobile_operator', 'id', $mobileOperators,'',array('onchange'=>'somefunction()'));