开发者

celerity submit form by pressing enter

开发者 https://www.devze.com 2023-01-17 22:05 出处:网络
I\'m trying to use celerity to submit a form. This form has a generated link that is called when the user hits the enter button. How do I trigger this?

I'm trying to use celerity to submit a form. This form has a generated link that is called when the user hits the enter button. How do I trigger this?

I know you can submit by finding the link / button and pressing .click(). But I want to submit by pressing enter.

I noticed that celerity form objects has a:

  • (Object) submit Submits the form.

http://celerity.rubyforge.org/yard/Celerity/Form.html#submit-instance_method

but I cant seem t开发者_StackOverflow社区o access it. Thanks in advance

0

精彩评论

暂无评论...
验证码 换一张
取 消