skip to Main Content

Get id of clicked row-Twitter bootstrap

I am using "jquery": "^3.4.0" and DataTables 1.10.18. I am having the following table: $(document).ready(() => { var table = $('.datatable-responsive').DataTable(); }); $("#edit-row").click(() => { var c = this.id console.log(c) }); <!DOCTYPE html> <html lang="en"> <head> <!-- Global stylesheets -->…

VIEW QUESTION

yadcf Filter not working – Twitter bootstrap

I'm currently using this with: jQuery JavaScript Library v2.2.4 jQuery UI - v1.12.0 - 2016-07-08 I've used the following to init the table <!-- Datatables Scripts --> <script src="js/jquery.dataTables.js"></script> <script src="js/jquery.dataTables.yadcf.js"></script> <script type="application/javascript"> $(document).ready(function() { addTest(); var testTable; testTable =…

VIEW QUESTION

Twitter bootstrap – Datatables + JSON + best_in_place

I can not add gem best_in_place to my table. class_datatable.rb: def data class.map do |record| [ best_in_place(record, :name), best_in_place(record, :short_name) ] end end There is an error: NoMethodError (undefined method `best_in_place' for ClassDatatable:0xa9283a44) My gem file: source 'https://rubygems.org' # Bundle…

VIEW QUESTION
Back To Top
Search