I may be wrong, but there really only seems to be one “niceforms” plugin available for JS (this one by BadBoy), and I was so happy to see that it’s been ported to jQuery style by Lucian Lature (get it here).. Recently I’ve used it on a project, and it turned out that it breaks under certain conditions:
- only works properly for one form on the page (if used on more than one form, selects reference the wrong elements)
- the “onChange” event disappeared
Since the client already signed off on the design, I tried fixing it, and heeey, it actually works! Based on the fact that I only had to change about 3 lines, I’d say it’s probably right
. (See: The implicit rightness of elegant code)
Here’s the updated version: (Updated Niceforms for jQuery)
Changes: “niceform” class should now be attached to a container (div, for example) that the form resides in. Keep in mind that there might still be broken functionality under the hood. I only fixed it to the point where I could use it for my project.
Enjoy
PS: Post a comment if you find a newer / better version of this plugin.