I have this javascript code that generates rows with a form. but I need to add one php variable associated in the value(the var uno in the code ) but it doesn't work. I'd appreciate your help.
function formHtml() {
var uno ='<input type="text" <?php echo" value='$pe';?> data-type="address" name="address[]" id="address_'+rowcount+'" class="form-control autocomplete_txt" autocomplete="off">';
html = '<tr id="row_'+rowcount+'">';
html += '<th id="delete_'+rowcount+'" scope="row" class="delete_row"><img src="./src/images/minus.svg" alt=""></th>';
html += '<td>';
html += '<input type="text" data-type="countryname" name="countryname[]" id="countryname_'+rowcount+'" class="form-control autocomplete_txt" autocomplete="off">';
html += '</td>';
html += '<td>';
html += '<input type="text" data-type="countryno" name="countryno[]" id="countryno_'+rowcount+'" class="form-control autocomplete_txt" autocomplete="off">';
html += '</td>';
html += '<td>';
html += '<input type="text" data-type="phone_code" name="phone_code[]" id="phone_code_'+rowcount+'" class="form-control autocomplete_txt" autocomplete="off">';
html += '</td>';
html += '<td>';
html += '<input type="text" data-type="country_code" name="country_code[]" id="country_code_'+rowcount+'" class="form-control autocomplete_txt" autocomplete="off">';
html += '</td>';
html += '<td>';
html += uno;
html += '</td>';
html += '</tr>';
rowcount++;
return html;
}