javascript - How do I select the first row on this site with jQuery? -


i trying select first row has channel, artist, song, etc. not sure how select it?

this site:

http://www.dogstarradio.com/search_playlist.php?artist=&title=&channel=51&month=&date=&shour=&sampm=&stz=&ehour=&eampm=

and have tried

$("td:contains('51')") not work.

ultimately want able select rows follow.

---- here html trying grab there no real unique identifier such class or element , there more 1 table, row, , table data

    <center>this search includes data 12:00:00 9/30/2013 6:05:18 pm 10/6/2013<br>      <table><tbody><tr><td colspan="5"><div id="light" class="white_content"></div></td></tr><tr><td> &nbsp;</td><td colspan="3">search results 1 50 of 2441 total matches</td><td><a href="search_playlist.php?artist=&amp;title=&amp;channel=51&amp;month=&amp;date=&amp;shour=&amp;sampm=&amp;stz=&amp;ehour=&amp;eampm=&amp;resultcount=2441&amp;page=1">next<br>page</a></td></tr><tr><td class="channel">channel</td><td class="channel">artist</td><td class="channel">title</td><td class="channel">date</td><td class="channel">time</td></tr> 

the line below: (which in middle of top , bottom html)

<tr><td>51</td><td>swanky tunes+dvbbs+eitro</td><td><a href="#swanky+tunes%2bdvbbs%2beitrowe+know" onclick="seeqpodsearch('swanky+tunes%2bdvbbs%2beitro','we+know')">we know</a></td><td>10/5/2013</td><td>3:00:05 am</td></tr> 

--

<tr><td>51</td><td>stefan biniak</td><td><a href="#stefan+biniakjohnny+rotten+bootleg" onclick="seeqpodsearch('stefan+biniak','johnny+rotten+bootleg')">johnny rotten bootleg</a></td><td>10/5/2013</td><td>2:54:46 am</td></tr> <tr><td>51</td><td>tiesto+dyro</td><td><a href="#tiesto%2bdyroparadise" onclick="seeqpodsearch('tiesto%2bdyro','paradise')">paradise</a></td><td>10/5/2013</td><td>2:50:12 am</td></tr> <tr><td>51</td><td>@clubliferadio</td><td><a href="#%40clubliferadiotop+40+countdown" onclick="seeqpodsearch('%40clubliferadio','top+40+countdown')">top 40 countdown</a></td><td>10/5/2013</td><td>2:49:48 am</td></tr> </tbody></table> 

var row = $('td.channel:first-child').parent().next(); 

will entire row.

edit

to following rows, along lines of

while(row.not(':last-child')){     stuff.      row = row.next(); }  

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -