<script>
document.addEventListener("DOMContentLoaded", function () {
// Select the <th> element containing information about Kilometers
var kilometersTh = document.querySelector('th:contains("Kilometers")');
// Check if the element exists
if (kilometersTh) {
// Change the content of the <th> element to "Miles"
kilometersTh.textContent = "Miles";
}
});
// Function to check if the content of an element contains a specific string
jQuery.expr[':'].contains = function (a, i, m) {
return jQuery(a).text().indexOf(m[3]) > -1;
};
</script>
If you want to change the kilometers text in the detail table, try using the code above. It seems like the plugin does not yet support the unit selection for your wishes.