The task is this: you need to delete the contents of the "href" tag to the element indicated on the screen: enter image description here

It is always (!) The last element in this nesting. Perhaps, maybe you can somehow get it and change it using its css properties? .. ZY. I have been working on an ancient project, samopal and crutches are allowed, smarty is used here, as netbeans told me.

    2 answers 2

    $('#breadcrumbs span:last-of-type a').attr('href', '') 
    • breadcrumbs this id - Grundy
    • hell, did not know that you can use css-selectors. - Anque
    • @Grundy fixed, thx - lexxl
    • Grundy, glad to see you here again ((: - Anque
    • lexxl, your answer helped. strictly and to the point! Thank you, sorry, but I can not somehow raise your rating. i am sorry - Anque

    Well, change the attribute of the element.

     $("#тут элемент").attr("href","new url");