Skip to content

onChange Method does not trigger #28

@MarvinMuuss

Description

@MarvinMuuss

Hi there!

Thanks for your awesome work!

Unfortunately we're experiencing problems with the onChange method. We would like to send an AJAX request if the value of our selectBox changes to load new data. Can you help us?

Some snippets from the code:
(HTML from our Django project)

<select id="inputDisz" class="form-control">
                    {% for disz in disziplinen %}
                        <option value="{{ disz.disziplin_id }}">{{ disz.disziplin_name }}</option>
                    {% endfor %}
                </select>

JS

$("#inputDisz").dropdown({
        closeReset: false,
    });
    $("#inputDisz").change(function(){
        alert("change");
    });

unfortunately this does not trigger the alert.
Any ideas?

Thanks for the work you put in!

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