mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Menu: Add some testing for ensure that id-attributes aren't overwritten.
This commit is contained in:
parent
9626484dd5
commit
d7682daaa8
@ -54,7 +54,7 @@
|
||||
},
|
||||
*/
|
||||
select: function(event, ui) {
|
||||
$("#log").append("<div>Selected " + ui.item.children("a").text() + "</div>");
|
||||
$("#log").append("<div>Selected " + ui.item.children("a").text() + "(" + ui.item.children("a").attr("id") + ")</div>");
|
||||
button.focus();
|
||||
}
|
||||
}).hide();
|
||||
@ -79,10 +79,10 @@
|
||||
|
||||
<ul id="menu">
|
||||
<li>
|
||||
<a href="#">Amsterdam</a>
|
||||
<a id="a1" href="#">Amsterdam</a>
|
||||
<ul>
|
||||
<li><a href="#">Aberdeen</a></li>
|
||||
<li><a href="#">Ada</a></li>
|
||||
<li><a id="b1" href="#">Aberdeen</a></li>
|
||||
<li><a id="b2" href="#">Ada</a></li>
|
||||
<li>
|
||||
<a href="#">Adamsville</a>
|
||||
<ul>
|
||||
@ -104,8 +104,8 @@
|
||||
<li><a href="#">Amesville</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#">Anaheim</a></li>
|
||||
<li><a href="#">Cologne</a></li>
|
||||
<li><a id="a2" href="#">Anaheim</a></li>
|
||||
<li><a id="a3" href="#">Cologne</a></li>
|
||||
<li><a href="#">Frankfurt</a></li>
|
||||
<li>
|
||||
<a href="#">Magdeburg</a>
|
||||
|
Loading…
Reference in New Issue
Block a user