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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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