I would like to have the following poco object:
public int Age { get; set; }
[Disabled(Operator.LessThan, "Age", 18)]
public string Country { get; set; }
then on the frontend i would like to generate the following:
Html.TextBoxFor(model => model.Country)
// and the textbox should be disabled ( get the disabled attr ) if age is // less than 18.
also would be nice to have soimekind of onchange on the age field so that textbox country gets disabled via javascript.