开发者

celerity submit form by pressing enter

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜