I'm currently learning JavaScript and am having problems with my code : So I am practicing JavaScript in the Brackets Text Editor after learning a little bit of it on Codecademy. 
I want to alter the text in the p tags to gain (upon clicking the text) the properties set by the attribution class.

Here is the HTML:

    <p onclick="function">Hello</p>

CSS:

    .attribution{
    color:blue;
    font-weight:bold;
    }

Javascript:
  
    var main = function() {
    $('<p>').text('.attribution');
    };
    $(document).ready(main);


Thank You!

