Skip to content

Instantly share code, notes, and snippets.

@francoispeyret
Created July 4, 2018 06:59
Show Gist options
  • Save francoispeyret/bf5e1a65dd600a19100333ba6f97ff3c to your computer and use it in GitHub Desktop.
Save francoispeyret/bf5e1a65dd600a19100333ba6f97ff3c to your computer and use it in GitHub Desktop.
OpartDevis correction de correction
//---//
for (var k=0; k < order.length; k++) {
if ($('#selected_carrier').val() == order[k]) {
var selected = 'selected';
} else {
var selected = '';
}
carrierSelect.append('<option value="' + order[k] + '" ' + selected + '>' + data[order[k]]['name'] + ' - ' + data[order[k]]['price'] + ' '+currency_sign+' (' + data[order[k]]['taxOrnot'] + ')</option>');
}
//---//
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment