I'm trying to add a variable to the end of my href using regex and jquery. This is what i have so far:
$('#survey-click1').click(function(event) {
playerPause();
$("a[href^=http://d.surveysonline.com/]")
.each(function()
{
this.href = [regex goes here];
});
return false;
});
I'm simply trying to add a variable at the end of the url i clicked on to attach whether or not the video i just watched had a preroll or not. This could be done easily by attaching this to the end of my url code [&preroll="+Kdp3State.preroll+"]. How do i detect the end of the href string to attach this to to it?
Thanks