tabledit

How to enable DropDown Select Box when edit button from jquery-tabledit is clicked?

假装没事ソ 提交于 2021-02-11 12:50:53
问题 I have a table with a dropdown select box that I want to be disabled by default (for safety purposes). Now, when the edit button from jquery-tabledit is clicked, I want it to be enabled again. How could I achieve so? Whenever "Multiselect JS" is commented it works, but not otherwise. I need "Multiselect JS" so that it shows as a dropdown select box. This is how it looks when "Multiselect JS" is commented: You can find demo code in the accepted answer Here This question is different because it

jquery tabledit dropdown: is it possible to retrieve values from mysql database?

感情迁移 提交于 2021-02-11 09:37:07
问题 I'm using the jquery tabledit plug-in to update a database. Works perfectly like in the official examples. I can succesfuly include a static dropdown with a fixed number of options (defined in custom_table_edit.js). I'd like to be able to dynamically get those options from a database instead, but I don't know how to customize the code in custom_table_edit.js. I can code this in php with a loop querying the database and generating a html <select> field. But I don't have knowledge of javascript