Textbox allows only alphanumeric and also allow leftarrow(<-)
<p><strong>Requirement:</strong> Textbox should allow only alphanumeric.</p>

<p><strong>My Problem:</strong> 
My code is allowing only alphanumeric. But problem is  leftarrow(&lt;-) is not working in google cromo and IE. Its working in mozilla firefox. For enter the backward text, its not allowing leftarrow(&lt;-) key. How can i resolve it. </p>

<p><strong>code:</strong></p>

<pre><code>@Html.TextBoxFor(model =&gt; model.textId, new
{
   onkeyup = "this.value=this.value.replace(/[^A-Za-z0-9]/g,'');"
})
</code></pre>
