title: How to change image and text on hover
body: <p>I am trying to change the image and text on hover and I have got <a href="http://codepen.io/jordharris6/pen/VpEzEG/" rel="nofollow noreferrer">this in codepen</a> but it doesnt seem to be working? </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(".service_1").hover(function() {
    $(".hello").hide();
  
    $(".text").append("&lt;span class='go'&gt;Appended text&lt;/span&gt;");
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.service_item img {
    position: absolute;
  }
  
  .service_item {
    height: 307px;
    width: 700px;
    background-size: cover;
    transition: background-image 0.5s linear;
    -webkit-transition: background-image 0.5s linear;
    float: left;
    position: relative;
  }
  
  .service_item:hover {
    transition: background-image 0.5s linear;
    -webkit-transition: background-image 0.5s linear;
  }
  
  .serviceimg {
    margin-top: 66px;
    height: 949px;
  }
  
  .service_item a {
    height: 50%;
    display: block;
    text-align: center;
    font-size: 30px;
    color: #fff;
    text-transform: uppercase;
    position: relative;
  }
  
  .service_item img {
    position: absolute;
    left: 0px;
    width: 100%;
    height: 300px;
    transition: opacity .5s ease;
  }
  
  .service_item img:hover {
    opacity: 0;
  }
  
  .service_item span {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    text-align: center;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div class="service_item service_1"&gt;
    &lt;a href="/uk-marriage-spouse-civil-partner-visa/"&gt;
      &lt;img src="http://www.edwards-immigration.co.uk/wp-content/uploads/2017/02/mikhail-pavstyuk-8436.png"&gt;
      &lt;img src="http://www.edwards-immigration.co.uk/wp-content/uploads/2017/02/Untitled-1.png"&gt;
      &lt;div class="text"&gt;&lt;span class="hello"&gt;Hello there&lt;/span&gt;&lt;/div&gt;
    &lt;/a&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Can someone point me to where im going wrong please? </p>