I have used this before:
$("form:first").submit(function(){return false;});
$("#myButton").click(function(){$("form:first").get(0).submit();});
Basically prevents the form from submitting unless I explicitly
instruct it to in JS.
On Sep 25, 7:05 am, "Fabien Meghazi" <[EMAIL PROTECTED]> wrote:
>
On Sep 26, 10:10 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> > 1. remove the type=submit button. you need to also use javascript to
> > submit form.
>
> Really?
>
> Try this:
>
>
>
>
> 'Enter' works for me in FF (I didnt check on other browsers)
>
> Michael
Yes, you are right. I mad
> 1. remove the type=submit button. you need to also use javascript to
> submit form.
Really?
Try this:
'Enter' works for me in FF (I didnt check on other browsers)
Michael
> Is there an non javascript way to avoid "enter" keystroke in an input
> to trigger the form submit or am I forced to catch keystroke code 13
> in javascript ?
>
> If force to do in javascript, is there a way to catch keystroke event
> of only one input and not window object ? Is there already a
2ways.
1. remove the type=submit button. you need to also use javascript to
submit form.
2. add key down, key up etc. on any elements you want to avoid enter,
not only window.
On 9月25日, 下午1时05分, "Fabien Meghazi" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Is there an non javascript way to avoid "enter
Yes, I think you can do it in many ways...
1. remove button. Then the enter will not
invoke form's submit. But you should add form submit function in
somewhere.
2. You can catch the 13 keycode in any element's key event, not only
window object.
On 9月25日, 下午1时05分, "Fabien Meghazi" <[EMAIL PROTE
6 matches
Mail list logo