Francisco3945
Posts: 28
|
Posted: 01/10/2017, 4:33 AM |
|
GOOD MORNING.
WHEN I APPLY THE STYLE OF THE ARTTISTER, THE AUTOCOMPLETE IS TRANSPARENT. WHAT TO DO? CAN SOMEONE HELP ME?
|
|
|
Leszek
Posts: 1
|
Posted: 01/27/2017, 1:02 PM |
|
Francisco3945
Pass in figure of code example after side customer or server with what question state for you problem.
Because you can always use generally accessible library: jQuery UI
And to write np. something like this:
<link rel="stylesheet" type="text/css" href="css/cjquery-ui-x.y.z.custom.css"> //add
<head>
<script src="js/ui/jquery-ui-x.y.z.custom.min.js" type="text/javascript"></script> //add
<script type="text/javascript">
$(document).ready(function() {
$( "#businessID" ).autocomplete({
source: function( request, response ) {
$.ajax( {
url: "services/business.php",
type: "GET",
dataType: "json",
data: {id: $("#businessID").val(), code: $("#businessCode").val()},
success: function(data) {
response(data);
}
});
},
minLength: 1,
select: function( event, ui ) {
$("#businessID").val(ui.item.ID);
$("#businessCode").val(ui.item.code);
$("#businessName").val(ui.item.name);
}
} ).data( "ui-autocomplete" )._renderItem = function( ul, item ) {
return $( "<li>" )
.append( "<a>" + item.name + "</a>" )
.appendTo( ul );
};
</head>
|
|
|
Francisco3945
Posts: 28
|
Posted: 02/03/2017, 5:28 AM |
|
Ok. Fucionou
|
|
|
|
|
|
|
|