I have tag html like this:
<input type="text" name="KELOLA_NAMA_RM" value="" maxlength="100" size="30" />
And i want to add fiture in the input text using autocomplete.
The code like this:
$('#KELOLA_NAMA_RM').autocomplete({
source: "<?php echo $getDataLaporan;?>",
minLength: 1
});
And controller PHP like this:
public function getLaporan(){
echo 'justtesting';
exit;
}
When i try to check console in firebug, i get an error like this:
i call the getDataLaporan in controller like this:
$data['getDataLaporan'] = base_url().index_page()."/rm/getLaporan";
How can i get result 'justtesting' in the autocomplete?