.addclass() doesn't work, but .removeclass() does? Missing something big?

.addclass() doesn't work, but .removeclass() does? Missing something big?

Hi,

So when I use the following .js the .removeclass works, but not the add class.  I think there may be something bigger I'm missing I'm not really sure.  Any overall guidance would be great.  Thanks
  1. $(document).ready(function() {

  2. $('.title').addClass('titletwo');
  3. $('.title').removeClass('title');
  4. });
Here is my .css and .html

  1. .para{
  2. background-color: aqua;
  3. }

  4. .title{
  5. background-color: green;
  6. }

  7. #header1{
  8. font-style: bold;
  9. }


  10. #para1{
  11. font-size: larger;
  12. }


  13. .titletwo{
  14. text-color: white;
  15. }

  1. <html>
  2. <header>
  3. <script src = "http://localhost:8888/ci/js/jquery.js"></script>
  4. <script src = "http://localhost:8888/ci/js/javatest.js"></script>

  5. <link rel="stylesheet" type="text/css" href="http://localhost:8888/ci/css/javatest.css" />
  6. </header>

  7. <body>
  8. <div class = "div" id = "div1">
  9. <h1 id = "header1" class = "title">This is a Header</h1>
  10. <p id = "para1" class = "para">This is the paragraph of the first div and header</p>
  11. </div>

  12. </body>
  13. </html>