I found this code randomly : http://jsfiddle.net/alsweeet/ycYg7/
I used it through out, only to find out it doesnt work for IE11. I am looking for a fix for this code that works with both IE10, IE11 or alternatively a pure css dropdown (or native javascript). I prefer it to be less than 50 lines.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<style>
ul{
display: none;
position: relative;
top: -55px;
padding: 55px 0 0 0;
margin: 0;
}
ul:hover{
display: block;
}
li{
background: #ddd;
padding: 10px;
list-style: none;.
}
li:hover{
background: #eee;
cursor: pointer;
}
#button{
display: inline-block;
padding: 10px;
background: #ccc;
color: white;
}
#dd{
display: inline-block;
}
#dd:active ul{
display: block;
}
#dd:aactive ul:hover{
display: block;
}
#dd:active #button{
display: inline-block;
padding: 10px;
background: #ccc;
color: white;
}
</style>
<div id="dd">
<a href="#" id="button">Select Language</a>
<ul>
<li>English</li>
<li>French</li>
<li>German</li>
<li>Spanish</li>
</ul>
</div>
</body>
</html>