i need your help to add an html, php code inside a javascript variable i tried single quotes and escaping it ' inside the var using / but it doesn't work.
<script type='text/javascript'>
var field =
'<div class="form-group">
<label for="charge"><?php echo $lang['charge-formlabel']; ?></label>
<input type="text" id="charge" name="charge[]" placeholder="<?php echo $lang['placeholder-addcharge']; ?>" />
<p class="help-block">
<?php echo $lang['charge-form-description']; ?>
</p>
</div>
<div class="form-group">
<label for="description"><?php echo $lang['description-formlabel']; ?></label>
<input type="text" id="description" name="description[]" placeholder="<?php echo $lang['placeholder-adddescription']; ?>" />
<p class="help-block">
<?php echo $lang['description-form-description']; ?>
</p>
</div>
<div class="form-group">
<label for="value"><?php echo $lang['value-formlabel']; ?></label>
<input type="text" id="value" name="value[]" placeholder="<?php echo $lang['placeholder-addvalue']; ?>" />
<p class="help-block">
<?php echo $lang['value-form-description']; ?>
</p>
</div>';
</script>