this is exactly what I was looking for, a solution using jQuery to
bind a function. Still green on ajax, so your example was very useful
and also the link provided above for a javescript refresher on events.
$(‘select#model_some_id’).bind({
click:function () {
// do something when it’s clicked
},
keydown:function () {
// do something when a key is pressed down in the select
},
keyup:function () {
// do something when a key is pressed up in the select
}
});
This handles most of the browser events you’ll find in Mozilla, IE,
Safari, etc. as far as handling events. Some change events are not
noticed by Mozilla (for instance if someone is using drop down arrows
while in a select field).
There are quite a few ajax tutorials out there.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.