java常用控件 js如何獲取控件id?
js如何獲取控件id?JS gets the child control Id user control]in the user control]//獲取用戶控件中子控件的真實(shí)Id,用于調(diào)用頁面中的
js如何獲取控件id?
JS gets the child control Id
user control]in the user control]//獲取用戶控件中子控件的真實(shí)Id,用于調(diào)用頁面中的JS,并調(diào)用方法
public string GradeClientID
{
get{returnthis.hfGradeId.ClientID}
}
公共字符串ClassClientID
{
獲取{返回this.hfClassId.ClientID}
}
調(diào)用用戶控件頁以使用
if($(“#”)”。Val()==“-1”|$(”#“)”。Val()=“){
警報(”請選擇等級!“)
返回false
}
if($(”#]%>“)。Val()==“-1”|$(“#]%>”)。Val()=“){
警報(”請選擇一個類!“”
返回false
}