Skip to content

Instantly share code, notes, and snippets.


blargoner/selectmenu.html Secret

Created Aug 19, 2015
What would you like to do?
jQuery select menu IE8 page jump
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery UI Selectmenu - IE8 page jump</title>
<link rel="stylesheet" href="">
<script src=""></script>
<script src=""></script>
<link rel="stylesheet" href="">
$(function() {
$( "#speed" ).selectmenu();
fieldset {
margin-top: 500px;
margin-bottom: 500px;
border: 0;
label {
display: block;
margin: 30px 0 0 0;
select {
width: 200px;
.overflow {
height: 200px;
<div class="demo">
<p>Reproduction steps for page jump in IE8:</p>
<ol class="steps">
<li>Resize your browser viewport vertically so that the select menu below is just visible.</li>
<li>Scroll the viewport down so that this text is out of view.</li>
<li>Open the select menu. Observe the page jump vertically back to the top.</li>
<li>Bonus: select some text in this sentence and repeat steps 2 and 3, and observe the page jump back to this position.</li>
<form action="#">
<label for="speed">Select a speed</label>
<select name="speed" id="speed">
<option selected="selected">Medium</option>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.