I have a 50-item ul. Is there a way to write to not have to write 50 of the below?
$(function(){
$("#nav_a").on("click", function(){
$("#main_text").load("pageA.html #main_text");
});
$("#nav_b").on("click", function(){
$("#main_text").load("pageB.html #main_text");
});
$("#nav_c").on("click", function(){
$("#main_text").load("pageC.html #main_text");
});