Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35272

Transform javascript data source into HTML form elements?

$
0
0

We've been using Javascript sourced data with a DataTable for a while now. It works great.

What's the preferred technique to transform the data into HTML form elements like inputs or selects? I found the createdRow callback but I'm not clear this is the best way.

For example if I had this row of data and I wanted each item to render as an input element in the TD.
['Trident','Internet Explorer 4.0','Win 95+','4','X']

The first item might look something like this.
<input type="text" value="Trident" />


Viewing all articles
Browse latest Browse all 35272

Trending Articles