Home > Web Front-end > JS Tutorial > body text

jQuery EasyUI menus and buttons to create simple menus and link buttons_jquery

WBOY
Release: 2016-05-16 15:31:34
Original
1448 people have browsed it

Menu is defined in some DIV tags, as shown below:

 <div id="mm" class="easyui-menu" style="width:120px;">
 <div onclick="javascript:alert('new')">New</div>
 <div>
  <span>Open</span>
  <div style="width:150px;">
  <div><b>Word</b></div>
  <div>Excel</div>
  <div>PowerPoint</div>
  </div>
 </div>
 <div icon="icon-save">Save</div>
 <div class="menu-sep"></div>
 <div>Exit</div>
 </div>
Copy after login

When the menu is created, it will not be displayed. Call the 'show' method to display it or the 'hide' method to hide it:

 $('#mm').menu('show', {
  left: 200,
  top: 100
 });
Copy after login

Create Link Button

Normally, buttons are created using the

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template