Skip to content

Instantly share code, notes, and snippets.

@Klerith
Created October 16, 2014 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Klerith/352ae30e33c1bf874d9e to your computer and use it in GitHub Desktop.
Save Klerith/352ae30e33c1bf874d9e to your computer and use it in GitHub Desktop.
DataTable: Agregar, Limpiar y Agregar
// Crear referencia al DataTable
Tabla = $('#tblResultados').DataTable();
// Limpiar Tabla
Tabla.fnClearTable();
// Agregar un row
Tabla.fnAddData( [
'<span class="red">' + rivm + "</span>",
identidad,
'<strong class="label label-info">' + nombres + "</strong>",
lugar,
fechasolicitud,
causa,
'button'
] );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment