Make a link unclickable with jQuery

If you need to make a html link unclickable a quick solution is to use the below jQuery

//make selected link unclickable
$('a.no_click').attr( 'onClick', 'return false' );

Might not be pretty but it works fine

Justin Kelly

Justin Kelly

Data Engineeer, Business Analytics, Web Developer, Library Technology specialising in PHP and Tableau

Based in Melbourne, Australia

Feel free to contact me or _justin_kelly