Sometimes your task in MVC involves many buttons in the same form. Such as the screen shot here. What happens in most situations is that you end up having some code that kind of looks like this: … and then the code looks like this We can solve this with a little jQuery. By attaching…
Continue Reading »
Written on
April 20, 2010 by
Donn in
MVC
If you disable your “save” button on your MVC views when the page first loads and want them to be auto-enabled when any input on the form changes, you can do that with the following jQuery snippet. This is sort of a hack*, but it works. With this HTML and this javascript: You’ll “enable” the…
Continue Reading »
*** Update ***: I’ve also created a cheap jQuery plugin for this as well. See the bottom of the post There’s a lot of talk on Twitter today about IE6. I’m building a web application in my free time and I didn’t want to support IE6. Will I lose users? Yes, a few, but I…
Continue Reading »