Hey I've got some code for loading an affiliate cookie, based on the class of a URL. Code: $('a').click(function(e) { var affiliate = $(this).attr('class'); // do something with it return false; }) Say I wanted to load the Amazon affiliate cookie for this url, what could I put in //do something here.
How to load an affiliate cookie using this jquery?
2
Hey I've got some code for loading an affiliate cookie, based on the class of a URL.
Say I wanted to load the Amazon affiliate cookie for this url, what could I put in //do something here.
I tried <img src="amazon aff url"> but that didn't work...
Code:
$('a').click(function(e) {
var affiliate = $(this).attr('class');
// do something with it
return false;
}) I tried <img src="amazon aff url"> but that didn't work...
- phpbbxpert
Next Topics on Trending Feed
-
2