Change the first value of a title
<p>I need to change only the first value of a title. I did something but I don't know if it's the best way to do it.</p>

<p><strong>HTML:</strong> </p>

<pre><code>&lt;div title="Title that have to be change"&gt; the div is here &lt;/div&gt;
</code></pre>

<p><strong>JS:</strong></p>

<pre><code>$("div").click(function(){
     var title =  $(this).attr('title').split(' ')[0]; 
       /*
           title is now getting the first value (Title), so, 
           i need to change only him.
       */

       // this is the better way to do this ?
       if(title == "Title"){
             $(this).attr("title", "Changed that have to be change");
       }
});
</code></pre>

<p>Can I change just a part of the title, instead to do all that?</p>
