diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2013-10-16 18:04:37 +0200 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2013-11-26 11:42:45 +0100 |
commit | 21c565b3ca9de9cc4cfc3fb2e847cc0330921c48 (patch) | |
tree | bd9d9852fa99e705d7590d87fb4dd8330772593a /demos/quickstart/protected/pages/Controls/Samples/TClientSideValidator/Home.page | |
parent | 2b11341614ac4a15be697fa8acad07055154ac54 (diff) |
jquery port
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples/TClientSideValidator/Home.page')
-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>
|