Добрейшего вечерочка!
Функция:
function myFunction() {
var name = $("#name").val();
var cost = $("#cost").val();
var tmp = "http://site.com/go/<?php echo $this->user->info->username ?>/?transaction=" + name + "&item=" + cost;
var result = encodeURI(tmp);
$("#tar1").html(result);
$("#par1").html(result);
console.log(result);
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
Как вставить результат выполнения в a href?
Спасибо за любую помощь!