Howto make RequiredFieldValidator change the css class of the parent div

后端 未结 3 1120
伪装坚强ぢ
伪装坚强ぢ 2020-12-20 15:14

I have a TextBox input element that has a RequiredFieldValidator as such:

3条回答
  •  失恋的感觉
    2020-12-20 16:01

    with RequiredFieldValidator you can not add your custom code.

    you should use asp.net customvalidator control, and write your own custom validation javascript function which sets the class to the div.

提交回复
热议问题