Skip to content

Switchery not rendered when loaded dinamically #169

@claracena

Description

@claracena

Hello,

I'm loading different sets of switches using AJAX + PHP depending on user selection using a select field. The problem is that when first loaded, the switches are not rendered using SWITCHERY. They just stay as simple checkboxes.

Sometimes the switches do get formatted with switchery but most of the time it doesn't.

The switches reside inside a table body and it's passed from PHP as a single line (from to ) and each line appended to the TBODY using a for loop inside the success function of AJAX.

Is there any way of re-dawing these switches after the loop?

Any ideas? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions