http://jqueryui.com/demos/autocomplete/#combobox
在右侧,有选择器选项卡(选中的箭头指向左侧)
这是什么 CSS 菜单?为什么我在 JQuery UI 网站上找不到它?
最佳答案
这不是插件,它只是页面上的一小段 html/css/javascript。
控制菜单的javascript在http://jqueryui.com/js/demos.js中.
具体部分:
//Rewrite and prepare links of right-hand sub navigation
$('#demo-config-menu a').each(function() {
$(this).attr('target', 'demo-frame');
$(this).click(function(e) {
resetDemos();
$(this).parents('ul').find('li').removeClass('demo-config-on');
$(this).parent().addClass('demo-config-on');
//Set the hash to the actual page without ".html"
window.location.hash = this.getAttribute('href').match((/\/([^\/\\]+)\.html/))[1];
loadDemo(this.getAttribute('href'));
e.preventDefault();
});
});
关于javascript - 这是什么 JQuery 脚本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4295358/