disabled submit when nothing changed

For example I have an edit form with Name and Description:

Name: ApplePie
Description: Sort of cake.

(SUBMIT)

Default I can click on the submit button and still update the entries when nothing changed. I want to prevent this behaviour. So, when I click in the input field for example ApplePie and start writing ApplePie|s, the submit button goes active, but if I changed nothing the submit button is by default disabled.

I’m using Symfony 2.6.7 and jQuery.

Someone an idea? 🙂


Source: forms

Leave a Reply