View Single Post
Old 11-16-2012, 11:13 AM   PM User | #1
bu06nne
New to the CF scene

 
Join Date: Aug 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
bu06nne is an unknown quantity at this point
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,
bu06nne is offline   Reply With Quote