How To Add/Remove Multi Rows In jQuery And Wordpress

Posted by SUBSWISS on Stack Overflow See other posts from Stack Overflow or by SUBSWISS
Published on 2010-04-04T13:14:25Z Indexed on 2010/04/04 13:23 UTC
Read the original article Hit count: 235

Filed under:
|

Hey All

I'm making a wordpress theme options page, and one of the options I want to make is how to add/removes dynamic rows by that the user can make it when he want to add a block. something like this

<table id="block" width="350px" border="0">
    <tr>        
        <td> 1 </td><!--Nomber of the row-->
        <td><input type="text" /><br /><label>Title</label></td><!--Title of the row-->

        <td><input type="text" /><br /><label>IMG Link</label></td><!--Image of the row-->

        <td><textarea  type="textarea" cols="40" rows="2"></textarea><br /><label>Description</label></td>
    </tr>
</table>


and the result will be something like this :

Please Click Here To See The Image


Beside I want to make it saved to wordpress when updating are saved .

Thank you.
Karar

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about Wordpress