Home Forums Porto Admin Template Clear Input Fields

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10030862
    mushi
    Participant

    Hello,
    how can i clear input fields (autocomplete & select2) when after receiving ajax response i have tried may solution but didn’t work.

    my code
    Image



    Template Version: 2.2.0
    #10030864
    Support2
    Keymaster

    Hello,

    Here is the code you need for the select2:

    $('.your-select-2-field-selector').val('').trigger('change');

    Here is the code you need for the autocomplete:

    $('.your-atucomplete-field-selector').tagsinput('removeAll');

    Please try that and let us know if you need further assistance.

    Kind Regards,

    Rodrigo.


Viewing 2 posts - 1 through 2 (of 2 total)