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

Pankajkumar PatelRank #181 · 13.4K reputationPosted Dec 14, 2022, 8:59 AM EST
Hi Kaushik Guru,
Two step correction:
Try following way:
Hope this will help you!
kaushik guruRank #8,900 · 214 reputationPosted Dec 14, 2022, 10:00 AM EST
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