Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #22690
| 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 | 2014-01-18 19:29 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <lbeh71$38c$1@dont-email.me> (permalink) |
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
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