php - Coupon displayed after user uses Addthis -
i see addthis has sample code may help: http://www.addthis.com/help/client-api#events
in registration form, want display coupon code in input text field if share site. ideas on how this?
in html, give input field id can reference later:
<input type="text" id="coupon-code" value="">
then, here's addthis listener:
<script type="text/javascript"> addthis.addeventlistener('addthis.menu.share', function(evt) { // show coupon code document.getelementbyid('coupon-code').value = "code12345"; }); </script>
Comments
Post a Comment