I am facing some abnormal behavior in my MVC application. I have taken textbox and label in my View
@Html.LabelFor(m => m.AddressLine1)
@Html.TextBoxFor(m => m.AddressLine1, new { maxlength = 40, title = "Enter Address Line1" })
and in my ViewModel
[DisplayName("Address Line1")]
[Required(ErrorMessage = "Please enter Address Line1")]
public string AddressLine1 { get; set; }
at the time of debugging when I am clicking on label, textbox is getting selected. Someone please help me to solve and please tell me why I am facing such kind of problem.