Finding Controls inside row with rowindex-VBForums
Results 1 to 2 of 2

Thread: Finding Controls inside row with rowindex

  1. #1

    Thread Starter
    Fanatic Member bharanidharanit's Avatar
    Join Date
    Oct 2008
    Location
    India
    Posts
    673

    Finding Controls inside row with rowindex

    Hi,
    How to find control inside row of selected rowindex. Here when i select first row, class must be toggled with tat row only.
    Code:
         $("td.Normal").hide();
         $("td.Edit").show
    Code:
    <table>
    	<tr>
    		<td class="Normal">1</td>
    		<td class="Edit">
    			<input type="text" value="1" >
    		</td>
    	</tr>
    	<tr>
    		<td class="Normal">2</td>
    		<td class="Edit">
    			<input type="text" value="2" >
    		</td>
    	</tr>
    </table>

  2. #2
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    CT
    Posts
    15,558

    Re: Finding Controls inside row with rowindex

    I usually .addClass and .removeClass so that I'm "selecting" the dom-elements of the row I want...

    Are you really trying to hide and show the row?

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.