Skip to content
Loading
  • Kiran Mohanty
    +1
    I think in MVC view itself we can achieve it as below. Assuming default value of "Input.Warehouse" and "Input.Branch" is null.
    1. for="Input.Branch" id="branch" class="form-control" disabled="Input.Warehouse != null ? 'disabled' : null">  
    2.   
    3. for="Input.Warehouse" id="warehouse" class="form-control" disabled="Input.Branch != null ? 'disabled' : null">  
    4.   
    +1
  • +1
    Kiran Mohanty
    i am using Razor page  
    +1
  • +1
    Sachin Singh
    thank you for your help 
    but how could i make them enable i mean not disable if i want to change the choise 
    at moment i have to refersh the page even be able to change the choise  
    +1