我如何隐藏jquery中弹出窗口的所有按钮的工具提示

时间:2018-04-17 06:58:25

标签: jquery

我在隐藏控制按钮jquery弹出窗口的工具提示时遇到问题,我可以使用closeText隐藏关闭按钮的工具提示:false,但maximizeText:false不起作用。

1 个答案:

答案 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