[jQuery] Image Button Acts Like Submit Button for JQuery Call
On my web page, I have two image button to dynamically add or delete a row of data in a table. When I click the buttons, they submit the form and execute the action=justDoIt.php on the form tag and not call jquery. Is there any way this can be fixed. I'm using IE6 8 beta. I have to stick with IE for now because I have vbs. Thanks loads! Marv. These two buttons work, but are very ugly: input type=button value=del class=delrow/ -- input type=button value=add class=addrow id=addrow/ I would like to get these two buttons to work: divtd 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 / /td/div
[jQuery] Re: Image Button Acts Like Submit Button for JQuery Call
On Sep 17, 1:39 pm, rcflyer2005 [EMAIL PROTECTED] wrote: 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. Sorry if this is a double post. My first time here... Thanks.