I have a partial view that is rendered multiple times from a foreach loop in the parent view.
I need to take a model property value (string), pass it to a javascript function to do some checking and possible processing, string manipulation etc., and then return the value to the razor view for display, likely using @Html.Raw.
Can anyone suggest how to accomplish this, and is this the appropriate approach for this problem (this has to be done on the client)? Thank you.