EasyUi 中 js控制 easyui-linkbutton 按钮 是否可用

easyui-linkbutton 按钮组件

 html

<div align=center > 
  <a href='#' id='create_data_field' name='create_data_field' class='easyui-linkbutton' iconCls='icon-data-base-add'  onclick='CreateDataField();'  
style="width:20%;height:35px;" >创建数据库字段</a> <a href='#' class='easyui-linkbutton' iconCls='icon-save' onclick='Field_Save();' style="width:40%;height:35px;" >保存</a> <a href='#' class='easyui-linkbutton' iconCls='icon-cancel' onclick="$('#dlg_field').dialog('close');" style="width:20%;height:35px;" >关闭</a> </div>

js

$('#create_data_field').linkbutton('enable');//可用

$('#create_data_field').linkbutton('disable');//不可用

 

posted @   海乐学习  阅读(171)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
历史上的今天:
2018-06-08 mysql下sql语句 update 字段=字段+字符串
2017-06-08 easyui textbox combobox 设置只读不可编辑状态
2017-06-08 Easyui combobox下拉菜单 示例及 onChange事件
点击右上角即可分享
微信分享提示