I want to print variable value inside string quote
this is my variable
var id = $(this).val();
how can i print this variable to this string
$('#button_cetak').html('<a href="{{route('report.pdf',[$user->nip,'//this is place i wanna print'])}}" class="btn btn-warning btn-block"><i class="fas fa-print"></i> Cetak</a>');
thanks
2
Answers
You can do it in two ways.
This would be the correct way to concatenate.