Problems with checking textbox val with textbox title
<p>Hi I got a couple of textboxes, they got title and value set to the same default, like <code>value="email", title="email"</code>. On button click if the value is the same as title it suppose to remove the value (for a validation i do) and so far so good cause it does. How ever the problem is comes when I have pressed the button once. When I lets say did not write a email in the contact form but I did write a message. this is the steps</p>

<p>1.Postback <br />
2.The validation say - please enter a email<br />
3.message textbox still got the value of the message written as before AND title is still "message"<br />
4.I write a email<br />
5.press button<br />
<strong>6.it clears the message textbox as its value is the same as title</strong></p>

<p>this is the jquery code I use for that, can you see anything that would cause this?</p>

<pre><code>$(".button2").focus(function() {
    $tb = $(".textboxjquery");
    if ($tb.val($tb.title)) {
        $tb.val("");
    }
});
</code></pre>
