Hi Guys I have this form:
- <form name="summary" method="post" action="https://edgeoftheworld.securetill.com/index.html?v3rYm4dVaR5=c57d1fafd44a333bf1e9de02eb123052&url=www.edgeoftheworld.co.uk" onsubmit="submitGift(); disableSubmitSmry();">
- <input type="hidden" name="action" value="payment">
- <td align="center" class="column_main">
- <br><!----></td>
- </tr>
- <tr>
- <td align="center" class="column_main">
- <input type="submit" name="submit" value="Submit" class="buttonstyle" onmouseover="this.className='buttonstyle btnhov'" onmouseout="hov(this,'buttonstyle')"></td>
- <input type='hidden' name='giftreceipt' value=''></input>
- </form>
I need to replace it with this as a form:
- <form name="summary" method="post" action="https://edgeoftheworld.securetill.com/index.html?v3rYm4dVaR5=c57d1fafd44a333bf1e9de02eb123052&url=www.edgeoftheworld.co.uk" onsubmit="submitGift(); disableSubmitSmry(); javascript:pageTracker._linkByPost(this)">
- <input type="hidden" name="action" value="payment">
- <td align="center" class="column_main">
- <br><!----></td>
- </tr>
- <tr>
- <td align="center" class="column_main">
- <input type="submit" name="submit" value="Submit" class="buttonstyle" onmouseover="this.className='buttonstyle btnhov'" onmouseout="hov(this,'buttonstyle')"></td>
- <input type='hidden' name='giftreceipt' value=''></input>
- </form>
So I'm adding the value
javascript:pageTracker._linkByPost(this) to the onsubmit of the form.
I know I have the code below for replacing a form but when I add the other form to the quotes it errors the javascript. Also how to I specifically make the form I'm replacing to be that particular form?
$("form").replaceWith( "" );
Thanks
Kaz