I have a function which returns a parameter from a table when the user clicks. The data is pulled in via ajax and that is why I am using javascript.
My function is simply:
<script>
function selectItem(id)
{
alert(id);
}
</script>
What I want is to have a passing to a URL which will pass the id to the lavavel route (rather than the alert which was simply checking the parameter passed), something like
{{ URL('quotations/p_customerselected/{id}') }}
I did try
{{ URL('quotations/p_customerselected/') }} + id;
but threw an error.