quick easy question for anyone who knows a little jquery.
$(document).ready(function(){
$('.selected').on('click', function(){
I have a navigation menu that has a class added to each li element when they are clicked (class 'selected' is added). I am trying to change the text inside of another container below the navigation (with class="banner-header") using replaceWith ie
$('.banner-header').replaceWith('Eugene is too cool for school');
However I am getting stuck because the text has to change depending on which navigation menu item is being pressed. I could write a lengthy if statement, but I don't know where to start, please help!
Thanks in advance.