weixin_33695082 2014-02-15 21:19 采纳率: 0%
浏览 2

选择性表格验证

I have multiple submit buttons in a form and I'm looking to disable jquery validation on all but one. This is probably easy but I've never encountered it before. Here is a simple example.

Example:

<div>
    <button type="submit" name="navigate" value="back">Back</button>
    <button type="submit" name="navigate" value="next">Next</button>
</div>

How would I validate only on the next button but not the back button?

  • 写回答

2条回答 默认 最新

  • weixin_33728708 2014-02-15 21:23
    关注

    if I understand your problem then use this code block.

    $("button [value='next']")
    

    for select next button only?

    评论

报告相同问题?