I'm trying to attache a couple different variables to a url using the code below (just a test url) and I can't figure out how to get it correct?
Here is what I have:
$('#fetch').html( "Name: " + data.name ); // John
$('#fetch2').html( "Time: " + data.time ); // 2pm
Here is my guess (which doesn't work but might give you an idea what I'm trying to do)
$.get("test.php?account_id=<?php echo $account_id;?>&campaign_id=$("select[name='contests']").val()},
and so on...
Any help would be appreciated. Like I said I can get the variables, just don't know how to attach to the url without errors.