开发者

get data from combobox

开发者 https://www.devze.com 2023-02-02 05:28 出处:网络
Hi there i want to get data from the below combo box in cakephp for comparison. echo $form->input(\'ac_owner\', array(\'label\' => \'Account Owner\',

Hi there i want to get data from the below combo box in cakephp for comparison.

echo $form->input('ac_owner', array('label' => 'Account Owner',
                 'options' => array('A','B','C'), 'default' => 2));

is it possible t开发者_如何学编程o get this value using javascript

please help. thank you in advance........


The result of this is a normal <select> element that can of course be accessed by Javascript. The id, if you're looking for that, should be something along the lines of ModelNameAcOwner. Inspect the resulting HTML or DOM tree to find it.

0

精彩评论

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