Improve company productivity with a Business Account.Sign Up

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 279
  • Last Modified:

jquery button problem


I have placed 2 buttons inside a form

<button class="addrow">add</button>
<input name="Submit" type="submit" class="button" value="Submit" />

i use this plugin to submit form

Open in new window

problem is both buttons try to submit form. is there way to stop add button from submitting form and use that button for anther use?

1 Solution
Hello 3xtr3m3d

Yes there are :

<button class="addrow" onclick="event.preventDefault(); /* more code here*/">add</button>

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now