常用标签的使用

默认选中 checked

 

<input type="radio" name="radio" id="radio" value="0" checked="checked" />
或者

 

<input type="radio" name="user.status" value="1" checked>正常
<input type="radio" name="user.status" value="0">禁用 
Javascript提示下列错误:
Error: unterminated string literal

<input type="button" οnclick="gotoList('userList.htm);" value="取消" tabindex="7" class="buttom"/> 
input type="button" οnclick="gotoList('userList.htm');" value="取消" tabindex="7" class="buttom"/>
少了一个'号...注意.

textarea  maxlength="120" 在IE上不起作用 需要配合JS控制字符长度 

<textarea id="content" name="zjzh_jzxjm.ME_CONTEXT" cols="56" rows="5" tabindex="5" maxlength="120" >$!zjzh_jzxjm.ME_CONTEXT</textarea>

 

var content = document.getElementById("content").value;

if(content.length>120)

{

alert("内容请小于120个字!");

return false;

}

javabean的规范,首字母不要大写,第二个字母也不要大写,更不能用小写或者数字下划线等等

select 默认选中

 

<select name="query.query_jz_status"  >
<option value="1" #if("$!query.query_jz_status"=="1") selected #end >正常</option>       
<option value="0" #if("$!query.query_jz_status"=="0") selected #end >故障</option>   
</select>
让input变成不可编辑状态的方法
 <input name="ly_qq" type="text" tabindex="2" onMouseOver="this.className='input_1'" onMouseOut="this.className='input_2'" value="123456789" disabled="true" readOnly="true" />
disabled="true "此果文字会变成灰色,不可编辑。
readOnly="true" 文字不会变色,也是不可编辑的。
数据库字段无大小写的区分。。
 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值