hernansartorio / hernansartorio/jquery-nice-select

option.append() doesn't work

Open
#84 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
955
Forks
271
PR merge metrics
No merged PRs in 30d

Description

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: "AAAABBBBCCCC"
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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.