Hello,
I have an AutoCompleteBox and am trying to clear the client-side value using a javascript function.
I have given an example below with a comment at where I am unsure of what property to use. When the button is clicked any user inputted text should be cleared and the EmptyMessage appears.
I have an AutoCompleteBox and am trying to clear the client-side value using a javascript function.
I have given an example below with a comment at where I am unsure of what property to use. When the button is clicked any user inputted text should be cleared and the EmptyMessage appears.
function ClearBox()
{
var box = $("#<%= ctrlBox.ClientID %>");
//what do I put here to clear the value??
//I tried box.text('') but it doesn't work
}
<
input
type
=
'button'
onclick
=
'ClearBox();'
/>
<
telerik:RadAutoCompleteBox
ID
=
"ctrlBox"
runat
=
"server"
InputType
=
"Text"
AllowCustomEntry
=
"false"
Filter
=
"Contains"
Delimiter
=
" "
Width
=
"630px"
DropDownWidth
=
"660px"
EmptyMessage
=
"Type here"
OnClientDropDownOpening
=
"openingDropdown"
OnClientLoad
=
"loadingAutoComplete"
OnClientRequesting
=
"requesting"
>
</
telerik:RadAutoCompleteBox
>