JQuery email login
3 answers
There are many, many bits of jquery that do this, you can google for "jQuery autocomplete" and see which one you like best.
The better known here: http://docs.jquery.com/Plugins/AutoComplete
<script>
var emails = [
{ name: "Kitty Sanchez", to: "kanchez@bluth.com" },
{ name: "Lucille Austero", to: "lucille2@balboatowers.net" },
{ name: "Bob Loblaw", to: "bloblaw@bobloblawlawblog.com" },
{ name: "Sally Sitwell", to: "sally@sitwell.org" }
];
$(document).ready(function(){
$("#Recipients").autocomplete(emails, {
multiple: true,
minChars: 1,
matchContains: "word",
autoFill: false,
formatItem: function(row, i, max) {
return "\"" + row.name + "\" <" + row.to + ">";
},
formatMatch: function(row) {
return row.name + " " + row.to;
},
formatResult: function(row, i, max) {
return "\"" + row.name + "\" <" + row.to + ">";
}
});
});
</script>
+1
source to share
http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
Check out this plugin. It looks strong and stable enough to meet your needs. jQuery is the perfect choice for the kind of effect you're looking for. Just keep in mind that depending on where you want to get your data, you need to create some kind of ajax / php backend.
+2
source to share