Skip to content
Browse files

Selectmenu: improved events.html demo

  • Loading branch information...
1 parent eaece57 commit 40393353bb5866cb4bf3ae4069066dfb76596e7c @fnagel fnagel committed Sep 30, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/visual/selectmenu/events.html
View
6 tests/visual/selectmenu/events.html
@@ -24,13 +24,13 @@
$("<div/>").text( index++ + " Closed").prependTo(log);
},
focus : function(event, ui) {
- $("<div/>").text( index++ + " Focused: " + ui.item.label).prependTo(log);
+ $("<div/>").text( index++ + " Focused: " + ui.item.label + " #" + ui.item.index ).prependTo(log);
},
select: function(event, ui) {
- $("<div/>").text( index++ + " Selected: " + ui.item.label).prependTo(log);
+ $("<div/>").text( index++ + " Selected: " + ui.item.label + " #" + ui.item.index ).prependTo(log);
},
change: function(event, ui) {
- $("<div/>").text( index++ + " Changed to: " + ui.item.label).prependTo(log);
+ $("<div/>").text( index++ + " Changed to: " + ui.item.label + " #" + ui.item.index ).prependTo(log);
}
});
});

0 comments on commit 4039335

Please sign in to comment.
Something went wrong with that request. Please try again.