I want it to affect all the forms, I use crud forms, how I can put a
id for the crud forms?

On 11 abr, 00:38, pbreit <[email protected]> wrote:
> Possibly because you are binding to 'form'. You might want to make the bind
> more specific like this:
>
> <form id=myform action=/home>
> <input name=a>
> <input type=submit>
> </form>
> <script>
> $(function() {
>    $('myform').bind('keypress', function(event) {
>      if (event.keyCode == 13) {
>        $('form').submit()
>      }
>    });
>
>
>
>
>
>
>
> });

Reply via email to