Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Chained Selects jQuery Plugin を使用して、いくつかの選択を連鎖させています。
特定のオプションを選択するリモート チェーン ドロップダウンがあります。現在、デフォルトは最初のものです。
コードサンプルは大歓迎です。
Ok Guys は私自身の質問を解決しました。JSON 応答でキーを「選択」した追加の要素を渡すだけです。たとえば、「7 シリーズ」をデフォルトで選択する必要がある場合は、以下の例のようにします。
{ "":"--","series-1":"1 シリーズ","series-3":"3 シリーズ","series-5":"5 シリーズ","series-6":"6シリーズ","シリーズ-7":"7 シリーズ","選択済み":"シリーズ-7"}