2

I am new to jQuery. I need to generate table dynamically in jQuery.

Is there any tool available for jQuery to generate an Html table? How can I convert table in html code into jQuery?

1
  • 6
    What is a "jQuery table"? I have no idea what you are trying to do. Commented May 30, 2012 at 12:04

4 Answers 4

2
var $table = $("<table></table>");
Sign up to request clarification or add additional context in comments.

Comments

2
$('#your_html_element_id').after
  ('<table><tr><td>...</td></tr><tr><td>...</td></tr></table>');

Comments

1

I've got a feeling that you want to create a data grid out of your table using a jquery widget. If that's the case, the first thing you need to do is learn to write more descriptive questions :)

The second thing to do is to search for jquery data grids. http://bit.ly/JPqUBb

I've had good luck with ingrid, flexigrid, and jqgrid in the past, all are very simple to use.

Comments

0

For creating tables using JQuery, I recommend using the datatables plugin:

http://datatables.net/

It's got lots of functionality and the documentation is great.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.