0
$("#commentForm").validate({
rules: {
insurance1$ucBuildingInsurance$txtOtherReasonDescription: required
}
});
我现在的剧本是这样来验证一个文本框txtOtherReasonDescription.Ideally我想用$取代insurance1 $ ucBuildingInsurance $ txtOtherReasonDescription()语法,这样的控件ID不固定的。无论如何,这可以实现吗?jQuery验证softcode文本框中的名称