0
$("#commentForm").validate({
rules: {
insurance1$ucBuildingInsurance$txtOtherReasonDescription: required
}
});
我現在的劇本是這樣來驗證一個文本框txtOtherReasonDescription.Ideally我想用$取代insurance1 $ ucBuildingInsurance $ txtOtherReasonDescription()語法,這樣的控件ID不固定的。無論如何,這可以實現嗎?jQuery驗證softcode文本框中的名稱