If any of them is already selected, the script does not detect

I have a checkbox-required script that normally works. But the problem I can’t solve is: If any of them is already selected, the script does not detect the selected one and says choose. It works when you click at least once. What should I do, I would appreciate it if you could help, thank you.… Read More If any of them is already selected, the script does not detect

Expressjs required form elements

I am making a sign-up page for my site. It looks like this <!DOCTYPE html> <html lang=”en” height=””> <head> <meta charset=”UTF-8″> <meta http-equiv=”X-UA-Compatible” content=”IE=edge”> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <title>MVC | Signup</title> </head> <body> <div> <form action=”/signup” method=”post” target=”nothing”> <h1>Sign up for Post-it</h1> <input type=”text” name=”name” placeholder=”Your name”> <input type=”text” name=”usr” placeholder=”Username” > <input type=”password” name=”psd”… Read More Expressjs required form elements

{Required] Attribute is not working on Lists ASP.NET WebAPI

Here’s my model public class TaskForUpdateDTO { [Required] public int Id { get; set; } [Required] public string Name { get; set; } [Required] public string Name { get; set; } } and my controller [HttpPut] public ActionResult<List<TaskDTO>> Put([FromBody] List<TaskForUpdateDTO> tasks ) { List<TaskBO> tasksForUpdate = TaskForUpdateDTO.MapToBOList(tasks); tasksForUpdate = _serviceManager.TaskService.Update(tasksForUpdate); if (tasksForUpdate is null) return… Read More {Required] Attribute is not working on Lists ASP.NET WebAPI