Dropdown not working inside jquery datatable mobile view

Dropdown not working inside jquery datatable mobile view

rizwanali98601rizwanali98601 Posts: 2Questions: 1Answers: 0

Check this fiddle : https://jsfiddle.net/rizwanali98601/ngofhc24/12/

There is jquery datatable.
In table , there is dropdown inside jquery datatable.

On button click, I add option in dropdown. But in mobile view option not added to dropdown.

Answers

  • colincolin Posts: 3,593Questions: 0Answers: 633

    Hi @rizwanali98601 ,

    One problem is that you have two elements with the same ID, which is a big no-no. If you use a class, like here, you'll see it being added.

    Cheers,

    Colin

  • rizwanali98601rizwanali98601 Posts: 2Questions: 1Answers: 0

    Second dropdown created automatically with same id in responsive mode.
    How to restrict addition of new dropdown ?

  • colincolin Posts: 3,593Questions: 0Answers: 633

    You can create your own responsive.details.renderer as in this example here.

Sign In or Register to comment.