Hi,
Given a form with the following elements.
<input name='button' value='Submit' type='submit'/>
<input name='button' value='Cancel' type='submit'/>
I want to submit the form using javascript with a completely new value.
this.form['button'] = 'MYVALUE';
this.form.submit();
How do I submit the form with a completely new value for the button parameter?
If I click the button the form values contain either button=Submit
OR button=Cancel
I want to submit with button='MYVALUE'
.
How do I achieve this.