|
Combining two onclick js functions
Hi folks,
I need to add an onclick function to a submit button for a form that was built by a developer.
How would I do this, if the submit button already has an onclick function already there?
<div id="formbuttons"><input class="buttonsubmit" id="btnsubmit" name="btnsubmit" onclick="return formvalidate()" type="submit" value="Send"/> </div>
<input type="hidden" name="subaction" value="form" /> <input type="hidden" name="formId" value="OnlineFormHandler"/></form>
I need to add the following to the submit button:
onclick="wrs_trackclick('DCS.dcsuri=formsubmit', 'WT.ti=form submit','WT.dl=24')
Many thanks,
|