document.getElementById("hintPrices").classList.remove('hidden');
- не работает, ошибок не выдает <script type="text/javascript">
function log( message ) {
$( "<div>" ).text( message ).prependTo( "#hintPrice" );
}
function addPrice(price) {
$('#price').val(price);
}
function newService(){
document.getElementById("hintPrices").classList.add('hidden');
$('#service').val("");
$( "#service" ).prop( "disabled", false );
}
$().ready(function() {
$('#addCar').validate();
});
console.log($('#autorepair').val());
$( function() {
$( "#service" ).autocomplete({
source: "newJob-search.php?data=<?=$autorepairData['departmentID']?>",
minLength: 2,
select: function( event, ui ) {
$('#service').val(ui.item.label);
$( "#service" ).prop( "disabled", true );
$('#serviceID').text(ui.item.value1);
$('#hintPrice').val(ui.item.label);
document.getElementById("hintPrices").classList.remove('hidden');
$("#hintPrice").html('<a onclick="ui.item.value1">ui.item.value1</a>')
}
});
} );
</script>
$arr=array(...);
for ($i=0;$i<955;$i++){
$db->query("insert into `lines` set `name`=?s",$arr[$i]);
}