jQuery datatreeview field name - maikelbos0/VDT GitHub Wiki
By default, jQuery-datatreeview creates checkbox input fields without a name. It is easy to set the name by using the data-field-name
attribute on the main element of your treeview. The below example will generate checkboxes with the name example-field-name
.
<div id="example-treeview" data-field-name="example-field-name">
</div>
<script type="text/javascript">
$('#example-treeview').datatreeview({
data: [
{ value: '1', text: 'Foo' },
{ value: '2', text: 'Bar' },
{ value: '3', text: 'Baz' }
]
});
</script>