Change the back ground color of the text box inside the gridview in asp.net?
<p>I am working on a asp.net application where i am able to load the data from the SQL to the gridview in aspx page.User has the ability to edit and save the values in the gridview.
My grid view has the itemtemplates where i have two colums with textboxes.I want to highlight all the cells with a different color which user edits in the gridview.</p>

<p>I am able to do the same thing for the textboxes in another aspx page with out gridview with java script with the code below:</p>

<pre><code>&lt;script type="text/javascript"&gt;


        $(document).ready(function() {

            $(':input').change(function() {

                $(this).addClass("textchanged");

            });

        });

    &lt;/script&gt;



 &lt;asp:GridView runat="server" ID="gvnames" AutoGenerateColumns="False" CellPadding="4"
            Font-Names="Georgia" ForeColor="Black" GridLines="Vertical" BackColor="White"
            BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" DataKeyNames="Name"
            DataSourceID="SqlDataSource1" 
           &gt;
            &lt;RowStyle BackColor="#F7F7DE" /&gt;
&lt;colums&gt;
    &lt;asp:TemplateField HeaderText="Name"&gt;
                        &lt;ItemTemplate&gt;
                            &lt;asp:Label ID="lblName"  Visible='&lt;%# !(bool) IsInEditMode %&gt;' runat="server"
                                Text='&lt;%# Eval("Name") %&gt;' /&gt;
                            &lt;asp:TextBox ID="txtName" Width="250px" Visible='&lt;%# IsInEditMode %&gt;' runat="server" Text='&lt;%# Eval("Name") %&gt;' /&gt;
                        &lt;/ItemTemplate&gt;
                    &lt;/asp:TemplateField&gt;
&lt;/colums&gt;
  &lt;FooterStyle BackColor="#CCCC99" /&gt;
            &lt;PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" /&gt;
            &lt;SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" /&gt;
            &lt;HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" /&gt;
            &lt;AlternatingRowStyle BackColor="White" /&gt;
        &lt;/asp:GridView&gt;
</code></pre>

<p>When i try to implement the same code for the text box inside a grid view its doesn't work.
Is is the right approach or is there any other way to achieve ?
I would appreciate if some one can guide me in right path.</p>
