skip to Main Content

print variable value inside string quote – Laravel

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

VIEW QUESTION
Back To Top
Search