You can set, get and clear WebInput value programmatically in client-side.
In this topic, you will learn how to use the method for set, get and clear the
WebInput's value.
To set WebInput value
- Drag WebInput control to the WebForm.
- Place the following code to set WebInput's value:
function SetDateTimeFreeInput()
{
var wiDateTimeFreeInput = ISGetObject("wiDateTimeFreeInput");
wiDateTimeFreeInput.SetValueData("01-January-2007");
}
|
- Run the Project.
To get WebInput value
- Drag WebInput control to the WebForm.
- Place the following code to get/retrieve WebInput's value:
function GetDateTimeFreeInput()
{
var wiDateTimeFreeInput = ISGetObject("wiDateTimeFreeInput");
alert(wiDateTimeFreeInput.GetValueData());
}
|
- Run the Project.
To clear WebInput value
- Place the following code to clear WebInput's value:
function ClearDateTimeFreeInput()
{
var wiDateTimeFreeInput = ISGetObject("wiDateTimeFreeInput");
wiDateTimeFreeInput.SetValueData("");
}
|
- Run the Project.