jQuery UI Widgets Forums Editors CheckBox, RadioButton Add checkboxes dynamically

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 9 years, 12 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Add checkboxes dynamically #57784


    I need to be able to add check boxes dynamically based on a selection.
    For example, If I have a dropdownlist with 3 options
    Turkey, Steak, Bratwurst
    After the user selects the meat they would see checkboxes for this selection
    These items would be read from the database based on this selection.
    Turkey would show
    Cheese, Lettuce, Mayo, etc…
    Onions, Peppers, etc..
    Mustard, Sauerkraut, etc…

    Can I add these checkboxes based on items from the database?

    Add checkboxes dynamically #57806


    Hello joepacelli,

    This should be possible – you would have to dynamically append div elements to your page according to the loaded items from the database and then initialize the checkboxes from these divs.

    Best Regards,

    jQWidgets team

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.