How to do dynamic dependent select box using Jquery, Ajax, PHP and Mysql. Dependent select box when a selection is made in a "Parent" box it allow to refresh a "child" box list data. In this post I had given a database relationship example betweent "catergory" and "subcategory". It's very simple jquery code hope you like this. Download Script Live Demo Database Sample database tables. Data tab
1つのselectボックスに連動させて2個目のselectボックスの内容を変えるjQueryサンプル 2010年08月09日- Dynamic Dependent Select Box using Jquery and Ajax 1つのselectボックスに連動させて2個目のselectボックスの内容を変えるjQueryサンプルが公開されています。 これは、国を選んだ後、都市を選ぶような場合に使われますが、データをAjaxで取得するので、HTMLが肥大化せずに便利に使えます。 日本だと、東京都を選んだ後、何区を選ぶようなシチューエーションで使えますね。 サーバサイドのスクリプトはPHP+MySQLで組まれていて、データ量が多くなっても対応できそうです。 利用前に注意点として、配布されているphpのソースではSQLインジェクションの問題があるので、もし実際に利用する場合は書き換えてあげる必要
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く