I've got a little drag-and-drop thing going on, where a hidden field is populated using JavaScript. The idea is that this hidden field's modified property will go back to the server as normal. The problem is that the ModelState hasn't recognised that the value has changed- I've got an error saying the value's null when it's clearly not (it doesn't actually have a required flag on it, but it's an int, so the mere fact that it's null causes MVC to throw a tantrum).
So I was just wondering if, in JavaScript, I can modify the ModelState's errors to get rid of the error.