jquery-nice-select
jquery-nice-select copied to clipboard
option.append() doesn't work
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?
$('#select_ID').niceSelect('update');
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!