Hi there ,
I have a page with client side code only.
On a button click (using javascript) I want to check if inputs are valid , and if so , execute the javascript (in my case , changing tab on form)
How can I do it?
And this is the javascript I want to run in case the input is valid (while clicking on button)
I have a page with client side code only.
On a button click (using javascript) I want to check if inputs are valid , and if so , execute the javascript (in my case , changing tab on form)
How can I do it?
<
asp:TextBox
ID
=
"tbFirstName"
runat
=
"server"
Font-Size
=
"1em"
style
=
"width: 150px;"
></
asp:TextBox
>
<
telerik:RadInputManager
ID
=
"RadInputManager1"
runat
=
"server"
Skin
=
"Office2007"
>
<
telerik:TextBoxSetting
BehaviorID
=
"TextBoxBehavior1"
EmptyMessage
=
""
Validation-IsRequired
=
"true"
>
<
TargetControls
>
<
telerik:TargetInput
ControlID
=
"tbFirstName"
/>
</
TargetControls
>
<
ClientEvents
OnValidating
=
"onValidating"
/>
</
telerik:TextBoxSetting
>
</
telerik:RadInputManager
>
And this is the javascript I want to run in case the input is valid (while clicking on button)
function
GeneralContinue() {
tabStrip = $find(
'RadTabStrip1'
);
tabStrip.findTabByValue(
'General'
).select();
}