There are two image buttons on my web page that are intended to
execute javascript jquery.  However, they trigger the php program on
the <form> tag action="justDoIt.php".  Is there a way to fix this so
my buttons trigger jquery or an alternative solution?

These two button do not work, they trigger submit:

        <input type="image"  class="delrow" src="images/rowOutDel.png"
          onmouseout= this.src="images/rowOutDel.png"
          onmouseover=this.src="images/rowOverDel.png"
                  onmousedown=this.src="images/rowDownDel.png"  />

    <input type="image"  class="addrow" src="images/rowOutAdd.png"
                  onmouseout= this.src="images/rowOutAdd.png"
                  onmouseover=this.src="images/rowOverAdd.png"
                  onmousedown=this.src="images/rowDownAdd.png" />


These buttons work and trigger javascript-jquery (but are quite ugly):
   <input type="button" value="del" class="delrow"/>
   <input type="button" value="add" class="addrow" id="addrow"/>

Thanks loads.

Reply via email to