Hi,
I have two lookup fields on basic form. I need to clear second lookup field value when first lookup is changed(add/clear/remove).

I have tried below code. It is working for first time, when I changed the contact lookup, the facility is removing. But from the second time, I change or remove the contact lookup, facility lookup is not removing.
$("#new_contactid").change(function(){
$("#new_facility").val("");
$("#new_facility_name").attr("value", "");
$("#new_facility_entityname").attr("value", "");
});