Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- single = function(){
- startdate = $("#from").val();
- enddate = $("#to").val();
- $.post("worker.php", { "startdate": startdate, "enddate": enddate },
- function(data) {
- $.each(data, function(key, value){
- appendstring = "<div class='item'>";
- appendstring += "<h3>" + key + "</h3>";
- appendstring += value[0] + "<br />";
- appendstring += value[1];
- appendstring += "</div>";
- $("#myTable").dataTable().fnAddData([
- key,
- value[0],
- value[1],
- "",
- ""
- ]);
- });
- }, "json");
- }
Add Comment
Please, Sign In to add comment