I have a <ul> created with PHP:
$WORLD_STATES =
array(
"France",
"Germany",
"Greece",
"Greenland",
"United Kingdom",
"United States",
"Uruguay"
);
echo '<ul>';
for($i=0; $i<sizeof($WORLD_STATES); $i++){
echo '<li rel="' . $WORLD_STATES[$i] . '">'.$WORLD_STATES[$i].'</li>';
}
echo '</ul>';
Since the full list of countries is very long, with a scrollbar in a div tag, I want the user to be able to reach a country by simply pressing an alphabetic keyboard shortcut.
How can I accomplish this?
this is an image:

To do this with jQuery (jQuery suggested as an easy/reliable way to abstract away cross-browser inconsistencies), I suggest adding a search box to the beginning of the list, giving the following:
html:
jQuery:
JS Fiddle demo.