jquery tabledit 下拉列表:是否可以从 mysql 数据库中检索值? [英] jquery tabledit dropdown: is it possible to retrieve values from mysql database?

查看:43
本文介绍了jquery tabledit 下拉列表:是否可以从 mysql 数据库中检索值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 jquery tabledit 插件来更新数据库.与官方示例中的工作完全一样.

I'm using the jquery tabledit plug-in to update a database. Works perfectly like in the official examples.

我可以成功地包含具有固定数量选项(在 custom_table_edit.js 中定义)的静态下拉列表.

I can succesfuly include a static dropdown with a fixed number of options (defined in custom_table_edit.js).

我希望能够从数据库中动态获取这些选项,但我不知道如何自定义 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.

我可以在 php 中用一个循环查询数据库并生成一个 html

发送“验证码”获取 | 15天全站免登陆