jQuery addClass example

Change class name on click in jQuery

HTML

<div class="job-card__footer">
  <p>30000 руб.</p>
</div>

CSS

.card__footer {
  position: relative;
}
.job-card__footer:after{
    content: '';
    position: absolute;
    top: 10px;
    left: 5px;
    display: block;
    width: 40px;
    height: 0;
    border-top: 1px solid #cdcfd2;
    order: -1;
}