onkeypress event of textbox in ItemTemplate is not firing on chrome and firefox
<p>I was trying to validate decimal number for 2 decimal point with onKeypress event of textbox.
it is working fine with IE. But not with chrome and firefox. But my page design and javascipt function given below.
could somebody help me to sort out this issue.</p>

<pre><code>&lt;asp:UpdatePanel ID="UpdatePanel3" UpdateMode="Conditional" runat="server"&gt;
                &lt;ContentTemplate&gt;
                    &lt;div class="grid-container-style"&gt;
                        &lt;ig:WebDataGrid ID="grdname" runat="server" Width="100%" AutoGenerateColumns="False"
                            TabIndex="5" ViewStateMode="Enabled"
                            ClientIDMode="Static" DataKeyFields="Id" EnableDataViewState="True"
                            DefaultColumnWidth="100%"&gt;
                            &lt;AjaxIndicator Enabled="False" /&gt;
                            &lt;Columns&gt;
                                &lt;ig:TemplateDataField Key="field" Width="8%"&gt;
                                    &lt;ItemTemplate&gt;
                                        &lt;asp:TextBox ID="txtJanuary" Width="100%" runat="server" TabIndex="5" ondblclick="this.focus();this.select()"
                                            MaxLength="12" onchange="ValueChange(event,this,'field')" onkeypress="javascript:return InputDecimalCheck(event,this);"
                                            SkinID="numeric-textbox" Text='&lt;%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "field") %&gt;'&gt;&lt;/asp:TextBox&gt;
                                    &lt;/ItemTemplate&gt;
                                    &lt;Header Text="field" /&gt;
                                    &lt;Footer /&gt;
                                &lt;/ig:TemplateDataField&gt;
                            &lt;/Columns&gt;
                            &lt;Behaviors&gt;
                                &lt;ig:Selection RowSelectType="None" CellClickAction="Cell" CellSelectType="None"&gt;
                                &lt;/ig:Selection&gt;
                                &lt;ig:Activation Enabled="true"&gt;
                                &lt;/ig:Activation&gt;
                                &lt;ig:RowSelectors Enabled="false" RowNumbering="true" /&gt;
                                &lt;ig:ColumnMoving Enabled="false" /&gt;
                            &lt;/Behaviors&gt;
                        &lt;/ig:WebDataGrid&gt;
                    &lt;/div&gt;
                &lt;/ContentTemplate&gt;
            &lt;/asp:UpdatePanel&gt;
</code></pre>

<p>Javascript code given below</p>

<pre><code>function InputDecimalCheck(e, txtControl) {
    if ((e.shiftKey &amp;&amp; e.keyCode == 45) || e.which != 8 &amp;&amp; e.which != 0 &amp;&amp; (e.which &lt; 48 || e.which &gt; 57) &amp;&amp; e.which != 46) {
        return false;
    }
    // . = 46
    var text = txtControl.value;

    // Only one decimal point
    if (e.which == 46 &amp;&amp; text.indexOf('.') != -1) {
        return false;
    }
    var decimalIndex = text.length - text.indexOf('.');
    // Only 2 numbers after decimal
    if (text.indexOf('.') != -1 &amp;&amp; (text.length - text.indexOf('.')) &gt; 2 &amp;&amp; !(txtControl.selectionStart &lt;= text.indexOf('.'))) {
        return false;
    }
    return true;
}
</code></pre>

<p>chrome and firefox is not detecting its function call.</p>
