java常用控件 js如何获取控件id?
js如何获取控件id?JS gets the child control Id user control]in the user control]//获取用户控件中子控件的真实Id,用于调用页面中的
js如何获取控件id?
JS gets the child control Id
user control]in the user control]//获取用户控件中子控件的真实Id,用于调用页面中的JS,并调用方法
public string GradeClientID
{
get{returnthis.hfGradeId.ClientID}
}
公共字符串ClassClientID
{
获取{返回this.hfClassId.ClientID}
}
调用用户控件页以使用
if($(“#”)”。Val()==“-1”|$(”#“)”。Val()=“){
警报(”请选择等级!“)
返回false
}
if($(”#]%>“)。Val()==“-1”|$(“#]%>”)。Val()=“){
警报(”请选择一个类!“”
返回false
}