Jquery Ajax Dropdown Repeatedly Reset
From this question : JQuery Populate Dropdown by Attribute of tr tag Is there another way to accomplish this? I can't find the algorithm behind this JQuery Code VehicleCategory():
You are calling the VehicleCategory() multiple times.. If you need to do this, then empty the prior contents..
change..
$("#brand" + counterVehicle).append("<option value=''>-Select Brand-</option>");
to:
$("#brand" + counterVehicle).html("<option value=''>-Select Brand-</option>");
Post a Comment for "Jquery Ajax Dropdown Repeatedly Reset"