开发者

get data from combobox

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜