Skip to content

Instantly share code, notes, and snippets.

@RickyLin
Created February 7, 2021 05:35
Show Gist options
  • Save RickyLin/475f8b7c2ff1acc6690af2dc5846d0ab to your computer and use it in GitHub Desktop.
Save RickyLin/475f8b7c2ff1acc6690af2dc5846d0ab to your computer and use it in GitHub Desktop.
Enable/Disable asp.net web form validator control on client side.
var rfv = document.getElementById('validator_control_id');
ValidatorEnable(rfv, true);
ValidatorEnable(rfv, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment