select value of td and download content of selected tds

Posted by user1272145 on Stack Overflow See other posts from Stack Overflow or by user1272145
Published on 2012-11-16T22:53:20Z Indexed on 2012/11/16 22:59 UTC
Read the original article Hit count: 184

Filed under:
|

I have this table

<table class="results" id="summary_results">
    <tr>
        <td>select all</td>
        <td>name</td>
        <td>id</td>
        <td>address</td>
        <td>url</td>
    </tr>
    <tr>
        <td>
            <input type="checkbox">
        </td>
        <td>john doe</td>
        <td>1</td>
        <td>33.85 some address</td>
        <td>http://www.domain.com</td>
    </tr>
    <tr>
        <td>
            <input type="checkbox">
        </td>
        <td>jane doe</td>
        <td>2</td>
        <td>34.85 some address</td>
        <td>http://www.domain2.com</td>
    </tr>
    <tr>
        <td>
            <input type="checkbox">
        </td>
        <td>sam</td>
        <td>3</td>
        <td>33.86 some address</td>
        <td>http://www.domain3.com</td>
    </tr>
</table>

I would like to select all the rows then download the content of the urls knowing that each url is linked to the id. for example the first url will be www.domain.com?id=1&report=report

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery