I am using the RightJS javascript framework. I'm not sure if that has anything to do with this behavior or not. I have a form on my page and I use $('some_form').send(); to send the form to the server via a Post. The form submission works fine and request goes through to the server without error but after all the inputs in the form become disabled. Does anyone know what might be causing this to happen?

有帮助吗?

解决方案

You need to run the preventDefault() function

$('form').send({
  spinner:    $('spinner'),
  onComplete: preventDefault()
});

Its a jQuery feature

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top