我需要你的帮助。我想使用FullTable在HTML表中创建TextArea。你能帮我吗?
<script type="text/javascript">
$(
function () {
$("#my-table").FullTable({
"alwaysCreating": true,
"selectable": false,
"orderable": true,
"filterable": true
"fields": {
"name": {
"mandatory": true,
"errors": {
"mandatory": "Name is mandatory"
}
},
"description": {
"mandatory": false
}
}
});
$("#test-table-add-row").click(function () {
$("#my-table").FullTable("addRow");
});
$("#my-table-get-value").click(function () {
console.log($("#test-table").FullTable("getData"));
});
$("#my-table").FullTable("on", "error", function (errors) {
for (var error in errors) {
error = errors[error];
console.log(error);
}
});
$("#my-table").FullTable("draw");
}
);
</script>
我尝试过并失败了:D 这是我的代码,请帮帮我。 :(