Click here to Skip to main content
15,922,584 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to show the table row when the label text changed every time.

i tried too many examples but not get any specific solution.

for example :

<tr>
          <td style="width: 88px">
                </td>
                <td align="right" style="width: 388px">
                    Ports :
                </td>
                <td align="left" style="width: 437px">
                    <asp:UpdatePanel ID="UpGpsPort" runat="server">
                        <ContentTemplate>
                            <asp:Label ID="LblGpsPort" runat="server"></asp:Label>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
                <td style="width: 388px">
                </td>
            </tr>


whenever the LblGpsPort lable value change i want show below table row :

<tr id="TrSim1" style="display: none"  runat="server">
                <td style="width: 88px">
                </td>
                <td align="right" style="width: 388px; font-size: 16px; color: #fcbf04">
                    SIM 1 Details : IMEI :
                </td>
                <td align="left" style="width: 437px; font-size: 16px; color: #fcbf04">
                    <asp:UpdatePanel ID="UpGpsIMEI1" runat="server">
                        <ContentTemplate>
                            <asp:Label ID="LblIMEI1" runat="server" Text=""></asp:Label>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
                <td style="width: 388px">
                </td>
            </tr>


the table row "TrSim1" which i want to enable every time the label value changed
using javascript or jquery anything.

any help would be appreciated and its urgent if possible.

thanks in advance.
Posted
Comments
Karthik V Ambakad 5-Jan-16 14:40pm    
Can you not set the style to hidden during the onlablechange event?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900