diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2013-10-16 18:04:37 +0200 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2013-10-16 18:04:37 +0200 |
commit | 7d1cdcd61796a437f9ec7ba776f2a69640ba513f (patch) | |
tree | e47e6fd8438d92ced6d0b426a86d19059be411b5 /demos/quickstart/protected/pages/Controls/Samples/TClientSideValidator | |
parent | 1dbbb700f7959043ebcc23a3b7530ecb8a396b46 (diff) |
jquery port
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples/TClientSideValidator')
-rwxr-xr-x | demos/quickstart/protected/pages/Controls/Samples/TClientSideValidator/Home.page | 7 |
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>
|