title: How to get the previous text value of a div by clicking a html item?
body: <p>In the image below is the HTML code: 
  <img src="https://i.stack.imgur.com/mdL4G.png" alt="enter image description here"></p>
  
  <p>and this is my js code: </p>
  
  <pre><code>$(".salveazaTransaSuma").click(function(){
     var payment_name = $(this).siblings().previous(".transaContentEdit").text();
     alert(payment_name);
  });
  </code></pre>
  
  <p>So I want to get the text value from the <code>transaContentEdit</code> class, when i click on the <code>salveazaTransa</code> class. Don't Worry about the white spaces before and after the text value ("Servicii programare Transa 1"). Appearantly my code doesn't work. It gives me an error in firebug "TypeError: $(...).siblings(...).previous is not a function". Any idea how to hande this ?</p>