Replace .live with .on
Before:
$('#nav a').live('click', function)
After:
$('#nav').on('click', 'a', function)
admin Edited answer October 6, 2020
Replace .live with .on
Before:
$('#nav a').live('click', function)
After:
$('#nav').on('click', 'a', function)