From 7d1cdcd61796a437f9ec7ba776f2a69640ba513f Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Wed, 16 Oct 2013 18:04:37 +0200 Subject: jquery port --- .../pages/Controls/Samples/TClientSideValidator/Home.page | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'demos/quickstart/protected/pages/Controls/Samples') diff --git a/demos/quickstart/protected/pages/Controls/Samples/TClientSideValidator/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TClientSideValidator/Home.page index 06ed6295..f7d03ea2 100755 --- a/demos/quickstart/protected/pages/Controls/Samples/TClientSideValidator/Home.page +++ b/demos/quickstart/protected/pages/Controls/Samples/TClientSideValidator/Home.page @@ -1,6 +1,11 @@

Conditional Validation (client-side + server side)

+ +.required { + background-color: #E77471; +} +
@@ -22,7 +27,7 @@ Check "optional" to validate both textboxes ErrorMessage="*" ControlCssClass="required"> - sender.enabled = $('<%= $this->check1->ClientID %>').checked; + sender.enabled = jQuery('#<%= $this->check1->ClientID %>').get(0).checked; -- cgit v1.2.3