aboutsummaryrefslogtreecommitdiffstats
path: root/demos/autocomplete/custom-data.html
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-04-21 20:06:56 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2010-04-21 20:06:56 +0200
commitcfa185d962a153aa50c1ec991f37a24d222abce2 (patch)
tree5f747e161a57dbbd2776a4eae68df7d305ecbf03 /demos/autocomplete/custom-data.html
parent19b76a14a85c000996e22a6377ff86dc931bbc1e (diff)
parent469d0c52e93fe9e421877eec90489cc06d63e5e5 (diff)
downloadjquery-ui-cfa185d962a153aa50c1ec991f37a24d222abce2.tar.gz
jquery-ui-cfa185d962a153aa50c1ec991f37a24d222abce2.zip
Merge commit '1.8.1' into tooltip
Diffstat (limited to 'demos/autocomplete/custom-data.html')
-rw-r--r--demos/autocomplete/custom-data.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/demos/autocomplete/custom-data.html b/demos/autocomplete/custom-data.html
index 57598fa8c..139b41d99 100644
--- a/demos/autocomplete/custom-data.html
+++ b/demos/autocomplete/custom-data.html
@@ -64,7 +64,13 @@
return false;
}
- });
+ })
+ .data( "autocomplete" )._renderItem = function( ul, item ) {
+ return $( "<li></li>" )
+ .data( "item.autocomplete", item )
+ .append( "<a>" + item.label + "<br>" + item.desc + "</a>" )
+ .appendTo( ul );
+ };
});
</script>
</head>