$("#commentForm").validate({
rules: {
insurance1$ucBuildingInsurance$txtOtherReasonDescription: required
}
});
My current script looks like this to validate a textbox txtOtherReasonDescription.Ideally I would like to replace insurance1$ucBuildingInsurance$txtOtherReasonDescription with $() syntax so the control id is not hardcoded. Is there anyway this can be achieved?