How can I loop from A to Z? I\'d like to populate a select menu with the letters of the alphabet, eg
A &l
You can do this with the following
var alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""); $.each(alphabet, function(letter) { $('.example-select-menu').append($('' + alphabet[letter] + '')); });