我在隐藏控制按钮jquery弹出窗口的工具提示时遇到问题,我可以使用closeText隐藏关闭按钮的工具提示:false,但maximizeText:false不起作用。
答案 0 :(得分:1)
try this code
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.1/jquery-ui.js"></script>
<script>
$(function() {
$( "#dialog" ).dialog({ closeText: false });
});
</script>
<body>
<div id="dialog" title="Basic dialog">
<p>This is the default dialog which is useful for displaying information.
The dialog window can be moved, resized and closed with the 'x' icon.</p>
</div>
</body>
See [api][1] reference
$( "#dialog" ).dialog( "option", "closeText", false );
or
$( "#dialog" ).dialog({ closeText: false });
[1]: http://api.jqueryui.com/dialog/#option-closeText