Note that there are some explanatory texts on larger screens.

plurals
  1. POFirst TD for next TD
    primarykey
    data
    text
    <p>I have:</p> <pre><code>&lt;table&gt; &lt;tr class="here"&gt; &lt;td class="first"&gt;first&lt;/td&gt; &lt;td class="next" par="http://google.com"&gt;next&lt;/td&gt; &lt;td class="next" par="http://stackoverflow.com"&gt;next&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre> <p>live: <a href="http://jsfiddle.net/C5vSP/" rel="nofollow">http://jsfiddle.net/C5vSP/</a></p> <p>i would like receive with jQuery:</p> <pre><code>&lt;table&gt; &lt;tr class="here"&gt; &lt;td class="first"&gt;&lt;a href="http://google.com"&gt;first&lt;/a&gt;&lt;/td&gt; &lt;td class="next" par="http://google.com"&gt;next&lt;/td&gt; &lt;td class="next" par="http://stackoverflow.com"&gt;next&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre> <p>This must get parameter <strong>par</strong> from first <strong>TD.next</strong> and make link in first TD with this parameter.</p> <p>Is possible with jQuery? If yes, how?</p> <p><strong>EDIT:</strong> Thanks for answer. For all +1. I have one more problem:</p> <pre><code>&lt;table&gt; &lt;tr class="here"&gt; &lt;td class="first"&gt;first&lt;/td&gt; &lt;td class="next" par="http://google.com"&gt;next&lt;/td&gt; &lt;td class="next" par="http://stackoverflow.com"&gt;next&lt;/td&gt; &lt;/tr&gt; &lt;tr class="here"&gt; &lt;td class="first"&gt;first&lt;/td&gt; &lt;td class="next" par="http://yahoo.com"&gt;next&lt;/td&gt; &lt;td class="next" par="http://stackoverflow.com"&gt;next&lt;/td&gt; &lt;/tr&gt; &lt;tr class="here"&gt; &lt;td class="first"&gt;first&lt;/td&gt; &lt;td class="next" par="http://cnn.com"&gt;next&lt;/td&gt; &lt;td class="next" par="http://stackoverflow.com"&gt;next&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre> <p>LIVE: <a href="http://jsfiddle.net/C5vSP/2/" rel="nofollow">http://jsfiddle.net/C5vSP/2/</a></p> <p>This add for all .here link google.com instead of google.com, yahoo.com and cnn.com. I dont can modify html. I can use only jQuery. How can i make this correctly?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload