How to make a Textbox required IF a Checkbox is checked

前端 未结 6 1115
忘掉有多难
忘掉有多难 2020-12-16 13:33

How can I make a textbox required if a checkbox is checked?

I figure I could write a custom validator, but I was hoping to avoid a full post back to check the valida

6条回答
  •  既然无缘
    2020-12-16 13:55

    You'll need to check for it in whatever validation routine you're currently using, both client and server-side.

提交回复
热议问题