开发者

Observing blur event for select Prototype

I have

<div id="myselect">

<select>
<option value="0">1</option>
<option value="1">2</option>
</select&g开发者_运维知识库t;

</div>

Im trying to get the value of the select on blur.

So far I have:

    Event.observe('#myselect select', 'blur', function(event) {
        //get value
    });

Please advise!


try this

$('myselect').down('select').observe('blur', function(e){
    alert('blur');
});
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜