title: How to change a model property from a javascript function inside a view?
body: <p><br>
  Is there any way to alter my Model properties from a javascript function inside a view?</p>
  
  <p>Specifically, I have an edit view and need to access a string property value with </p>
  
  <blockquote>
    <p>function SomeJSFunction() { <br>
       var somevar = '&lt;%=Model.Property %>'; <br>
    ...</p>
  </blockquote>
  
  <p>then do some changes on somevar and set the model property to the changed string.
  I'm doing a submit at this point, so it's not a question of dealing with the display, just need to alter the model from inside the function before I submit. I know I could pass the string as a parameter and deal with it inside the controller but it just doesn't cut it as I really need to be done with it in the view. Appreciate any help!</p>