Easyui的常用控件使用方法 2023-07-16 获取combobox选中的值,文本 $('#com').combobox('getValue') //获取当前选中的值 $('#com').combobox('getText') //获取当前选中的文字 combotree设置默认值 $('#combotree').combotree('setValue',value); 禁用与启用combobox $('#combobox').combobox('disable',true) $('#combobox').combobox('enable') combobox的隐藏与显示 $('#combobox + .combo').hide() $('#combobox + .combo').show() 获取textarea的值 $('#textarea').val() 禁用与启用textarea document.getElementById('textarea').disabled=true; document.getElementById('textarea').disabled=false 获取textbox的值 $('#textbox').val() 禁用与启用textbox $('#textbox').textbox('disable',true) $('#textbox').textbox('enable') linkbutton的禁用与启用 $('#linkbutton').linkbutton('disable'); $('#linkbutton').linkbutton('enable'); form的清空 $('#form').form('clear'); 禁用整个form里面的输入框 $("#Form :input").attr("readonly", "readonly"); $("input").attr("readonly", "readonly"); validatebox的禁用与启用 前两种适用于单个的validatebox; $("#id").attr("readonly", true); $("#id").removeAttr("readonly"); $("#id").attr("readonly", "readonly"); $("#id").removeAttr("readonly"); 清空validatebox的值 $('#id').val("") datebox禁用启用方法 $("#datebox").datebox('disable'); $("#datebox").datebox('enable'); datetimebox禁用启用方法 $("#datetimebox").datetimebox('disable'); $('#datetimebox').datatimebox('enable'); TextArea禁止拉动拖动改变大小 彻底禁用拖动:在sytle中添加resize:none 固定大小,右下角拖动图标依然存在 width: x maxwidth: y height: mx maxheight: my
获取combobox选中的值,文本
combotree设置默认值
禁用与启用combobox
combobox的隐藏与显示
获取textarea的值
禁用与启用textarea
获取textbox的值
禁用与启用textbox
linkbutton的禁用与启用
form的清空
禁用整个form里面的输入框
validatebox的禁用与启用
前两种适用于单个的validatebox;
清空validatebox的值
datebox禁用启用方法
datetimebox禁用启用方法
TextArea禁止拉动拖动改变大小