How to resolve Jquery problem with select deselect all

I have some JQuery code that is not working correctly in an ASP.Net webform. Could someone help me and see if I am doing something incorrectly in the code? I have a single Checkbox object (chkSelectAll) that the user will click for Select or Deselect All. Then I have a Checkboxlist (chkApplianceFields) that I want to either select or deselect all checkboxes in that object based on the checked status of chkSelectAll. I am having to write this code because of some existing code not working in Chrome and Firefox but it works in IE. So the below code is new code starting from scratch to try to make the functionality cross-browser compatible. Here is my code:

ASP.NET forum app: obtaining the answer with most likes

We are building a forum type web application, and we are tring to make the answers with most likes (and most dislikes) look different. The Answer entity has a Reactions property (list of reactions) that include likes and dislikes (those are differentiated with a boolean property, true for like, false for dislike). Is there a way to obtain the answer with most likes, and the answer with most dislikes, with a LINQ query directly? or we have to make a method that solves it?

Validation for DropDownLists Broken

This is related to a previous question on passing model data to a partial view from two DropDownLists where the user must select department and year in a view. Numerical data is then displayed in a table in the partial view. The view contains the dropdowns and the table headers. The partial view contains the rows with the numerical data. Right now, the validation is broken. Both dropdowns are required. If I submit form with either dropdown not selected, I get this error:

Directory.GetCurrentDirectory() doesn’t point to bin folder anymore

I have an ASP.Net Core 3.1 solution that uses a Docker Compose file as its startup project. Calling the method Directory.GetCurrentDirectory() from anywhere in the code returns the string /app, which is weird as I was expecting this string to include /bin/Debug/netcoreapp3.1 or (Release if I build the code in release mode). If I go into the docker container that runs the code, the executing code is located at /app/bin/Debug/netcoreapp3.1.