php - Getting a value from a dynamic table -
I have a table that is used dynamically. I have to get the value (journal_id) from the hidden column when the respective check box should be checked and then ask the DB to get the data from the relevant ID and fill the drop down list. . How should I do this? You must use javascript to specify the details of columns foreach ($ value as $ value) {echo '& lt; Tr & gt; & Lt; TD & gt; '. $ Value- & gt; OBJECT_NAME. ' & Lt; / TD & gt; & Lt; TD & gt; '. $ Value- & gt; ISSN. ' & Lt; / TD & gt; & Lt; TD & gt; '. $ Value- & gt; Object_publisher_name. ' & Lt; / TD & gt; & Lt; TD & gt; '. $ Value->. Comment '& lt; / TD & gt; & Lt; Td id = "chkbutton" & gt; '. $ Form-> Checkbox ($ Model, "Journal_ID"). ' & Lt; / Td> & Lt; td style = "display: none;" & Gt; '$ Value- & gt; Object_id. ' & Lt; / Td> & Lt; / TR & gt; '; }
var table = $ ('# journal_table'). Datatyllus ({'columnDefs': [// This column is not visible. O is the first call, 1 is second, {'view': wrong, 'target': [5]}, ... {. Other settings ...}]});
Comments
Post a Comment