change inside div with jquery

Solutions on MaxInterview for change inside div with jquery by the best coders in the world

showing results for - "change inside div with jquery"
Nils
28 Jan 2017
1$('.click').click(function() {
2    // get the contents of the link that was clicked
3    var linkText = $(this).text();
4
5    // replace the contents of the div with the link text
6    $('#content-container').html(linkText);
7
8    // cancel the default action of the link by returning false
9    return false;
10});
11