jquery button problem

Hi

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

http://jquery.malsup.com/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?

Regards
LVL 3
3xtr3m3dAsked:
Who is Participating?
 
mhmrCommented:
Hello 3xtr3m3d

Yes there are :

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

0
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.

All Courses

From novice to tech pro — start learning today.