load_data()

Load custom data from an array. The method overwrites any data loaded previously. Must attach to a hidden input field. The remote data is internally converted JSON format.

Example of data array:

$data = array(
           array('id'=>11, 'text'=>'ABC'), 
           array('id'=>22, 'text'=>'OPQ'), 
           array('id'=>33, 'text'=>'XYZ')
           );

Signature:

public function load_data(array $data)

Parameters:

  • $data: – Data array. The remote data must be an array of of “id”, “text” pair.

No related content found.

Tags: ,

PHP Autocomplete
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.