Is there a way to disable links with JS or jQuery?

I was wondering if there is a way to disable a link using JS or jQuery, the links I want to disable are the ones in the portfolio items:

More details provided in the internal ticket.

Thanks in advance!