Is there a way to change model properties from a javascript function inside a view?
In particular, I have an edit view and you need to access the value of the row property with
Function SomeJSFunction () {
var somevar = '<% = Model.Property%>';
...
then make some changes to somevar and set the model property to the changed line. I feed at this point, so itβs not a matter of handling the display, you just need to change the model from within the function before I submit. I know that I can pass the string as a parameter and process it inside the controller, but it just doesnβt shorten it, since I really need to do this in the view. Appreciate any help!
source share