jquery-nice-select icon indicating copy to clipboard operation
jquery-nice-select copied to clipboard

option.append() doesn't work

Open lnovali opened this issue 6 years ago • 2 comments

Wonderfull plugin, but I have problems to create two select input depending each other (the second select should be populated when the user select a value in the first select input). My ajax function return (correctly) a list of option (for example: "" I use the append method on success success: function (data) { // alert( data ); <-- this alert works fine and show me the option list $('#cerca_dist').append(data); }

#cerca_dist is the select input I'm trying to populate with ajax response

where I'm wrong?

lnovali avatar Nov 27 '18 15:11 lnovali

$('#select_ID').niceSelect('update');

476344704 avatar Jan 18 '19 07:01 476344704

I have it working in a way you would like to. I generate the subsequent menu on the fly - but it does not matter...

$('#appointment_ui').append('select_menu'); $('select_menu').append(array).niceSelect();

This is with jquery.

Works beautiful, hope that helps!

AndrewMarkUK avatar Mar 16 '19 15:03 AndrewMarkUK