3
Answers

Access the model attribute in jquery and set the value

Harish Batchu

Harish Batchu

6y
1.6k
1
I would like to access the model attribute using jquery and set the value dynamically and it will need to show
 
 below is code
-------------------------- 
<p class='@(Model.MessageColor == BaseModel.MessageType.Error ? "alert alert-danger" : "")'>
@Model.Message
</p>
 
as early as possible 
 thanking you 
 
Answers (3)