Skip to content
Advertisement

MVC 5 Option Empty Line With JavaScript

JavaScript

This is my JavaScript code.

JavaScript

This is my controller part.

JavaScript

There are 2 options in the html part. When I select a department, the employees of that department come. My problem is that one of them is always selected. I want to click and select. how do i fix it so that if i click it ?? Sorry for my English. 🙂

Advertisement

Answer

Could you not just set a placeholder option above the loop in the success?

for example:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement