summaryrefslogtreecommitdiff
path: root/demos/quickstart
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2013-10-16 18:04:37 +0200
committerFabio Bas <ctrlaltca@gmail.com>2013-10-16 18:04:37 +0200
commit7d1cdcd61796a437f9ec7ba776f2a69640ba513f (patch)
treee47e6fd8438d92ced6d0b426a86d19059be411b5 /demos/quickstart
parent1dbbb700f7959043ebcc23a3b7530ecb8a396b46 (diff)
jquery port
Diffstat (limited to 'demos/quickstart')
-rwxr-xr-xdemos/quickstart/protected/pages/Controls/Samples/TClientSideValidator/Home.page7
1 files changed, 6 insertions, 1 deletions
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 @@
<com:TContent ID="body">
<h1>Conditional Validation (client-side + server side)</h1>
+<com:TStyleSheet>
+.required {
+ background-color: #E77471;
+}
+</com:TStyleSheet>
<table class="sampletable">
<tr>
<td class="samplenote">
@@ -22,7 +27,7 @@ Check "optional" to validate both textboxes
ErrorMessage="*"
ControlCssClass="required">
<prop:ClientSide.OnValidate>
- sender.enabled = $('<%= $this->check1->ClientID %>').checked;
+ sender.enabled = jQuery('#<%= $this->check1->ClientID %>').get(0).checked;
</prop:ClientSide.OnValidate>
</com:TRequiredFieldValidator>