jQuery UI Autocomplete search() Method
jQuery UI consists of GUI widgets, visual effects, and themes implemented using HTML, CSS, and jQuery. jQuery UI is great for building UI interfaces for the webpages. The jQuery UI Autocomplete widget is used to perform autocomplete enables to quickly find and select from a pre-populated list of values as they type, leveraging searching and filtering.
The jQuery UI Autocomplete search() method is used to trigger a search event and invokes the data source if the event is not canceled. This method is called when search operation performed.
$( ".selector" ).autocomplete( "search", "value" );
Parameters: This method accepts a single parameter value that holds a String type value.
CDN Links: First, add jQuery UI scripts needed for your project.
<link rel=”stylesheet” href=”//code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css”>
Example: This example describes the uses of the jQuery UI Autocomplete search() method.