jQuery val() stays empty

If you use jQuery to fetch the current value of a field like JavaScript var myvar = $('#myfield').val(); 1 var myvar = $('#myfield').val(); you might encounter issues, even if this syntax is correct. E.g. if a number is entered, it works. If a special char is entered,...

ASP.NET EditorTemplates

ASP.NET offers a good way to keep your code clean of redundant data, e.g. Bootstrap classes you would have to assign to every visible HTML element again and again. As a .NET Core MVC sample for single elements, you would write code like ASP @Html.TextBoxFor(m =>...

How to restore Ubuntu’s APT sources.list

If you have, for whatever reason, destroyed your local /etc/apt/sources.list file which Ubuntu uses for packages updates, here is a useful site which can regenerate it: https://repogen.simplylinux.ch/ My recommendation is to enter country release (get it with...
  [email protected]