Hi,
I want to add and remove a class from an element from jquery.
Here is my code:
@Html.TextAreaFor(m => m.TextAreaName, new { @id = "textAreaId", @maxlength = 1000 })
Please give me some idea to achieve this task.
Home / DeveloperSection / Forums / How to add and remove class from an element from jquery?
Hi,
I want to add and remove a class from an element from jquery.
Here is my code:
@Html.TextAreaFor(m => m.TextAreaName, new { @id = "textAreaId", @maxlength = 1000 })
Please give me some idea to achieve this task.
Anonymous User
02-Apr-2018Hi Franco,
You can achieve your task by following these line of code:
For add class:
For remove class:
I hope it's informative!!!