rearrange an html table with Jquery
Hey guys,
I'm new to jquery and i'm trying to rearrange the way a table looks.
I have this:
<table>
<tr>
<td>some text 1</td>
<td><
input
type
="
text
"/></td>
<tr/>
<tr>
<td>some text 2</td>
<td><
input
type
="
text
"/></td>
<tr/>
<tr>
<td>some text 3</td>
<td><
input
type
="
text
"/></td>
<tr/>
<tr>
<td>some text 4</td>
<td><
input
type
="
text
"/></td>
<tr/>
</table>
So basically everything in 1 column and I want it to be change to:
<table>
<tr>
<td>some text 1</td>
<td><
input
type
="
text
"/></td>
<td>some text 2</td>
<td><
input
type
="
text
"/></td>
<tr/>
<tr>
<td>some text 3</td>
<td><
input
type
="
text
"/></td>
<td>some text 4</td>
<td><
input
type
="
text
"/></td>
<tr/>
</table>
So to 2 columns. What if i need it in 3 columns?
thanks for all the help!