3
Answers

Access the model attribute in jquery and set the value

Photo of Harish Batchu

Harish Batchu

6y
1.7k
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)