Second dropdown appears only when first dropdown is selected

Second dropdown appears only when first dropdown is selected

Gamebox28Gamebox28 Posts: 3Questions: 0Answers: 0
edited April 2019 in Free community support

Is there a way when i select an item from first dropdown then only the second dropdown appears with populated results . Any help is appreciated.

Replies

  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    Hi @Gamebox28 ,

    Yep, you can just have it hidden (see here), then show it on the click event of the first dropdown. That's more of a standard JS question than anything specific to DataTables.

    Cheers,

    Colin

  • Gamebox28Gamebox28 Posts: 3Questions: 0Answers: 0

    Hi @colin,

    Actually i was trying to do that when i click on an item in first dropdown then the second dropdown which is hidden now appears with the matched results only ... i have tried different thing but i cant find a way.

  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    Hi @Gamebox28 ,

    This example here may get you heading in the right direction.

    Cheers,

    Colin

  • Gamebox28Gamebox28 Posts: 3Questions: 0Answers: 0

    Thanks for resolving the issue

This discussion has been closed.