Trigger change event of dropdown

后端 未结 6 1038
逝去的感伤
逝去的感伤 2020-12-02 12:12

I want to trigger the change event of dropdown in $(document).ready using jquery.

I have a cascading dropdown for country and state in user details page. how can i s

6条回答
  •  无人及你
    2020-12-02 12:26

    Try this:

    $('#id').change();

    Works for me.

    On one line together with setting the value: $('#id').val(16).change();

提交回复
热议问题