php - Getting a value from a dynamic table -


I have a table that is used dynamically. 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; '; }

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

  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

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -