In twitter boostrap data table the confirm dialog is working on page1 in other pages not working? -


I am using the Twitter Boostrap Data Table in my page. In the same page I called the Delete option for each row in the table. When I click on the deleted button in Page 1, it opens the confirmation dialogue to delete the record, but it does not work in other pages. Please see my workout code here.

My code:

  & lt ;! DOCTYPE html & gt; & Lt; Html lang = "en" & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" /> & Lt; Title & gt; Data table with all features & lt; / Title & gt; & Lt; Link href = "css / bootstrap.min.css" rel = "stylesheet" /> & Lt; / Head & gt; & Lt; Body & gt; & Lt; Br> & Lt; Div style = "width: 900px; margin: 0 auto; range: 0 px green dashed;" align = "center" & gt; & Lt; Table class = "table-table-range" id = "sample_1" & gt; & Lt; Thead & gt; & Lt; TR & gt; & Lt; Th & gt; Message & lt; / Th & gt; & Lt; Th & gt; Phone & lt; / Th & gt; & Lt; Th & gt; Event Date & lt; / Th & gt; & Lt; Th & gt; Message ID & lt; / Th & gt; & Lt; Th & gt; Institution id & lt; / Th & gt; & Lt; / Tr & gt; & Lt; / Thead & gt; & Lt; Tbody & gt; & Lt ;? php error_reporting (E_ALL); Ini_set ('display_errors', 1); Mysql_connect ('localhost', 'root', ''); Mysql_select_db ('sams'); $ Data = mysql_query (SELECT 1 AS type, institution_id, message, phone, event_data, message_id UNIN all types 2As type, institution, message, phone, event_date, message_id messages from message_ID) 11 'events_date order '$; Sno = 0; while ($ record = mysql_fetch_assoc ($ data)) {? & Gt; & lt; tr & gt; & lt; td & gt; & lt; php echo $ record [' message ' ];? & Gt; & lt; / td> gt; & lt; td & gt; & lt; php echo $ record ['phone'];? & Gt; & lt; / td & gt; & lt; Td & gt; & lt ;? php echo $ record ['event_date'];? Gt; & lt; / td> gt; & lt; td & gt; & lt; php echo $ record ['institution_id'] ;? & Gt; & lt; / td & gt; & L t; td & gt; & lt; an id = simple configured & lt ;? php echo $ sno;? & gt; delete "custom-attr =" & lt ;? php $ sno;? & gt; "href = "#" Class = "delete" & gt; Remove & lt; / A & gt; & Lt; / Td> & Lt; / Tr & gt; & Lt ;? php $ sno ++;}? & Gt; & Lt; / Tbody & gt; & Lt; / Table & gt; & Lt; / Div & gt; & Lt; Script src = "js / jquery-1.8.3.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "js / jquery.dataTables .js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "js / dT_bootstrap.js" & gt; & Lt; / Script & gt; & Lt; Script src = "js / dynamic-table.js" & gt; & Lt; / Script & gt; & Lt; Script & gt; $ (Function () {$ ('. Delete'). ('Click', function) {var data = $ (this) .attr ('custom-attr'   

please Please help me fix this problem. Thanks

You can use this code under the table, this means that it is working for me .... < Pre> & lt; script & gt; var $ jc = jQuery.noConflict (); $ jc ('[id ^ = "simpleConfirm _"]). Each (function () {$ jc (this) .confirm ();}); & Lt; / script & gt;

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -