Sweet! Thanks for the help!
I am interested in the event change, and am looking at
http://docs.jquery.com/Events/change.
$(select).change(function () {
var str = ;
$(select option:selected).each(function () {
str += $(this).text() + ;
});
$(div).text(str);
Thanks John,
The last .change() fires the event.
Looking through the other documentation, it appears that the other
event methods do not need a similar trailing method to fire the event,
only change. I've even did a test where I didn't include the last
change(), and it appeared to work.
Could
3 matches
Mail list logo