Skip to content

If user select None(-------) country, it must not makes ajax requests to server.  #2

@suhailvs

Description

@suhailvs

if (countryId == 0) { //Not selected
$("#id_city").html("<option value=''>---------</option>");
} else

  • disable the city select while the ajax request: $("#id_city").prop('disabled',true);

  • after ajax request, enable the city select: $("#id_city").removeAttr("disabled");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions