Skip to content

update not working append with append #102

@MmdRasoul

Description

@MmdRasoul

My project has a button that append select option in page im using jqueryniceselect in my project but When my select option is append niceselect not work this select option im update and refresh niceselect but not work.
$('.passengers-info-box').append(outputrecord()); $(".nicslc").niceSelect('update'); $(".nicslc").niceSelect('refresh');

$(document).ready(function() { $('select').niceSelect(); }); function outputrecord() { str=''; str +='<select class="nicslc" >'; str +='<option data-display="Select">Nothing</option>'; str +='<option value="1">Some option</option>'; str +='</select>'; return str; }

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