selecting text of textbox on focus
<p>Hi 
I have added some format on textbox like $0.00 now what i wants is to remove the format on focus and then select the value of text box
code is :</p>

<pre><code>$("#controlId").focus(function(){
   $(this).val(this.val().replace(/\$/g, ''));
   $(this).select();
});
</code></pre>

<p>this is working fine in IE and firefox but not in Google Chrome.</p>

<p>Can some body suggest me what should i do for this? </p>
