Here is a ul li list. I generate this list using js file. I would like to those list lift-aligned. But it doesn't work. When I write this code only HTML it left-aligned. Is there diffrence when using js file?
app.js
if (name.search(expression) != -1 || location.search(expression) != -1) {
$(`.resultUl[data-ref="${ref}"]`).append(
`<li
class="list-group-item link-class list-item"
data-name="${name}"
data-code="${code}"
data-location="${location}"
>
${name}
<span class="text-muted">${location}</span>
</li>
`
);
}
});