Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #22690

How do I best find the last anchor under a table with id=filer

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From "Tony Johansson" <johansson.andersson@telia.com>
Newsgroups comp.lang.javascript
Subject How do I best find the last anchor under a table with id=filer
Date Sat, 18 Jan 2014 19:29:44 +0100
Organization A noiseless patient Spider
Lines 67
Message-ID <lbeh71$38c$1@dont-email.me> (permalink)
Mime-Version 1.0
Content-Type text/plain; format=flowed; charset="iso-8859-1"; reply-type=original
Content-Transfer-Encoding 7bit
Injection-Date Sat, 18 Jan 2014 18:29:53 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="8fdc2b5af81c338deb7045fc6c39b0e2"; logging-data="3340"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+SE4DVEcrr4FbIK0qXCs4e"
X-MimeOLE Produced By Microsoft MimeOLE V6.0.6002.18463
X-Newsreader Microsoft Windows Mail 6.0.6002.18197
Cancel-Lock sha1:MOoToEqzgSJSUOslNvSs2A5Zfdg=
X-Priority 3
X-MSMail-Priority Normal
Xref csiph.com comp.lang.javascript:22690

Show key headers only | View raw


There is always only one td in each tr and there is always the anchor 
element in the td element
So I must find the last anchor element in the table with id=filer ?
What is the best way to do that in either javascript or jquery ?

<table id="filer">
      <tbody>
         <tr>
            <td>
               <a id="ContentPlaceHolder2_Repeater2_LinkButton1_0"
                    href="javascript:__doPostBack('ctl00$ContentPlaceHolder2$Repeater2$ctl01$LinkButton1','')">281668_3983272262962_790318380_n.jpg
               </a>
            </td>
         </tr>

         <tr>
            <td>
               <a id="ContentPlaceHolder2_Repeater2_LinkButton1_1"
                    href="javascript:__doPostBack('ctl00$ContentPlaceHolder2$Repeater2$ctl02$LinkButton1','')">bild.jpg
               </a>
            </td>
         </tr>

         <tr>
            <td>
               <a id="ContentPlaceHolder2_Repeater2_LinkButton1_2"
                  href="javascript:__doPostBack('ctl00$ContentPlaceHolder2$Repeater2$ctl03$LinkButton1','')">img029.jpg
               </a>
            </td>
         </tr>

         <tr>
            <td>
                <a id="ContentPlaceHolder2_Repeater2_LinkButton1_3"
                    href="javascript:__doPostBack('ctl00$ContentPlaceHolder2$Repeater2$ctl04$LinkButton1','')">img028.jpg
                </a>
            </td>
         </tr>

         <tr>
            <td>
               <a id="ContentPlaceHolder2_Repeater2_LinkButton1_4"
                    href="javascript:__doPostBack('ctl00$ContentPlaceHolder2$Repeater2$ctl05$LinkButton1','')">img027.jpg
               </a>
            </td>
         </tr>

         <tr>
            <td>
               <a id="ContentPlaceHolder2_Repeater2_LinkButton1_5"
                    href="javascript:__doPostBack('ctl00$ContentPlaceHolder2$Repeater2$ctl06$LinkButton1','')">img026.jpg
               </a>
            </td>
         </tr>

         <tr>
            <td>
               <a id="ContentPlaceHolder2_Repeater2_LinkButton1_6"
                    href="javascript:__doPostBack('ctl00$ContentPlaceHolder2$Repeater2$ctl07$LinkButton1','')">img025.jpg
               </a>
            </td>
         </tr>
      </tbody>
     </table>

//Tony 

Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

How do I best find the last anchor under a table with id=filer "Tony Johansson" <johansson.andersson@telia.com> - 2014-01-18 19:29 +0100
  Re: How do I best find the last anchor under a table with id=filer "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-01-18 20:28 +0100
  Re: How do I best find the last anchor under a table with id=filer Danny <dann90038@gmail.com> - 2014-01-18 11:46 -0800
    Re: How do I best find the last anchor under a table with id=filer Denis McMahon <denismfmcmahon@gmail.com> - 2014-01-18 21:39 +0000
      Re: How do I best find the last anchor under a table with id=filer Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-19 05:44 +0100
  Re: How do I best find the last anchor under a table with id=filer Denis McMahon <denismfmcmahon@gmail.com> - 2014-01-18 21:24 +0000
    Re: How do I best find the last anchor under a table with id=filer Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-19 05:32 +0100
      Re: How do I best find the last anchor under a table with id=filer John Harris <niam@jghnorth.org.uk.invalid> - 2014-01-20 15:34 +0000
        Re: How do I best find the last anchor under a table with id=filer "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-01-20 16:38 +0100
      Re: How do I best find the last anchor under a table with id=filer John Harris <niam@jghnorth.org.uk.invalid> - 2014-01-20 15:54 +0000
  Re: How do I best find the last anchor under a table with id=filer RobG <rgqld@iinet.net.au> - 2014-01-19 16:40 +1000
  Re: How do I best find the last anchor under a table with id=filer JJ <duh@nah.meh> - 2014-01-19 19:07 +0700
    Re: How do I best find the last anchor under a table with id=filer Christoph Michael Becker <cmbecker69@arcor.de> - 2014-01-19 21:56 +0100

csiph-web