Guest User

Untitled

a guest
Sep 4th, 2015
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var parent = $('.container');
  2. function drawTable(tableData) {
  3. var $table = $("<table id=" + tableData + "> </table>");
  4. parent.append($table);
  5. $table.addClass('table table-condensed table-striped');
  6. $table.before("<p class='text-center'>" + $table.attr("id").toString() + "</p>");
  7. $table.append("<tr id='#'" + tableData + "> <th>Rank</th><th>Name</th><th>Time</th></tr>");
  8. $table.append("<br> <br>");
  9. }
RAW Paste Data