if/else not working jQuery : <p>I would like to change text in one div depending on the text in another div.</p>

<p>Here is the code:</p>

<pre><code>$("#pricebtn").click(function () {
if ($('#titl01').html == "Services") {
  $('#titl01').html("Prices");
}
else {
  $('#titl01').html("No Prices");
}
</code></pre>

<p>Mainly what I need is - if the text in the div #titl01 is "Services" I need it to be changed to "Prices" otherwise change to "No Prices".</p>

<p>The problem with the code is that it changes text to "No Prices" even if the text in the div #titl01 is "Services"....</p>

<p>What am I doing wrong?</p>
