Setting <td> value using jquery

Posted by timk on Stack Overflow See other posts from Stack Overflow or by timk
Published on 2010-05-03T21:10:39Z Indexed on 2010/05/03 21:18 UTC
Read the original article Hit count: 218

Filed under:
|
|
|

Hello,

I have the div structure shown below. For the second <td> in the table i want to replace &nbsp; with a hyperlink whose href attribute is stored in the variable myLink. How can i do this with jquery ?

Please help. Thank You.

<div class="pbHeader">
  <table cellspacing="0" cellpadding="0" border="0">
    <tbody>
         <tr>
             <td class="pbTitle">
               <h2 class="mainTitle">Transfer Membership</h2>
             </td>
             <td>
                    &nbsp;
             </td>
          </tr>
     </tbody>
   </table>
</div>

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery