views:

252

answers:

2

Hey folks,

I am working on a web project ,One of the features include user can desgin a html Table and allow user split or merge cells feel free,(i am using jquery for my project).any one can help me?

Thanks!

A: 

I'm not sure what you need help with. You need to set or remove the colspan attribute on a TD element.

Gabriel McAdams
+1  A: 

I would use a small class to keep the attributes of the table in question and then as required rewrite the InnerHTML of it. While it sounds simple to adjust the colspan attribute of a td element this does not allow you to add columns or rows. it only allows you to extend the column or row you have.

Joel Etherton
I tried to do merge cells,But it is hard. Can you share your code for me?thanks!
guaike