Autocomplete.removeTarget

Syntax

removeTarget (target)

Parameters

target. ID or instance of control to remove from sutocomplete system.

Description

The removeTarget method removes a specified control from the autocomplete system.

Example

To execute the example, the page must contain the Autocomplete component named autocomplete (see Autocomplete constructor). A positioned component is an autocomplete system that includes the following two elements: the TextBox component with the ID TB1 and the NumberEdit component with the ID NE1. A list of autocomplete suggestions is defined for each component.  Remove the TextBox control with the ID TB1 from autocomplete system:

autocomplete.removeTarget("TB1")

 

After the example execution the TB1 control is removed from autocomplete system. The means, that autocomplete using suggestions listed in the Autocomplete.Suggestions property, will be not available for the TextBox component.

See also:

Autocomplete