Skip to content

Instantly share code, notes, and snippets.

@iamrealfarhanbd
Created June 3, 2022 05:56
Show Gist options
  • Save iamrealfarhanbd/b32bcf1aa3cd9116451f64f8065b2a1a to your computer and use it in GitHub Desktop.
Save iamrealfarhanbd/b32bcf1aa3cd9116451f64f8065b2a1a to your computer and use it in GitHub Desktop.
var myClasses= "index"; // column key
var notThis = [];
var singleClass = "ninja_clmn_nm_"+myClasses.trim();
jQuery('tbody tr').find(' .'+singleClass+'').each (function (index) {
notThis.push(index);
$table.find('tbody' + ' .ninja_table_row_'+index +' .'+singleClass+'').append(`<span>${index+1}</span>`);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment