i have a model like follows
public partial class CanditateReference
{
public titles? CanditateRelationToRef1 { get; set; }
public string? CanditateReference1Relation { get; set; }
public enum titles
{
select,
Manager,
Others
}
}
i am populating the values in dropdown from enum .
What i am tring to do is if in the dropdown others is selected there is a text box named others which should be enabled , rest of the time it should be disbaled
what i tried is
kaushik guruPosted Dec 14, 2022, 3:00 PM
Hi pankaj thanks for the help, But i can not keep the dropdown values in razor page. i need to get it from a enum inside a model
Pankajkumar PatelPosted Dec 14, 2022, 1:59 PM
Hi Kaushik Guru,
Two step correction:
Try following way:
Hope this will help you!