When I open this HTML in IE 11 and allow scripts, clicking on the dropdown causes it to flash and disappear immediately. Any ideas?
This is from a much larger app with styles and other elements, but here's the minimum to play it.
I got away with a few tricks I was trying to counteract this - in onclick and onmouseover you can see the script I have that tries to remove attributes. However, whatever ruptures the dropdown has already messed it up. It even happens when I remove the script at the top of the HTML to make the tooltip; it doesn't show up, but the dropdown is still broken.
<html>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.1.js"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
<script type="text/javascript">
$(function () {
$("[data-tooltip-open=true]").tooltip({
items: "[data-content=true]", content: $(this).data('content'),
position: {
my: "center bottom-20",
at: "center top",
using: function (position, feedback) {
$(this).css(position);
$("<div>")
.addClass("arrow")
.addClass(feedback.vertical)
.addClass(feedback.horizontal)
.appendTo(this);
}
}
}).tooltip("open");
});
</script><body>
<form>
<select name="test"
title="A selection from this list is required."
data-tooltip-open="true" data-content="true"
onclick="$(this).attr('data-tooltip-open','false');$(this).attr('title','');$(this).attr('data-content','false');"
onmouseover="$(this).attr('data-tooltip-open','false');$(this).attr('title','');$(this).attr('data-content','false');">
<option value=""></option>
<option value=" "> </option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
</form>
</body>
</html>
Any help is appreciated. thank.
source
to share