function fun1(){ $("#autocomplete1").autocomplete({ source: "/admin/spendu/action/scripts/getCars.php" }); }