javascript - Observing blur event for select Prototype -


i have

<div id="myselect">  <select> <option value="0">1</option> <option value="1">2</option> </select>  </div> 

im trying value of select on blur.

so far have:

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

please advise!

try this

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

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -