I'm trying to add to a <p>
element the following string:
(with no charset defined)
Цена: 4,80 BGN Поддръжка:
(directly from .XML file)
Цена: 4,80 BGN
but it doesn't work, firebug keeps saying:
$('#sms_hint p').html('aЦена: 4,80 BGN unterminated string literal
and this is how I'm trying to add the html to element:
<?php $promo = "Цена: 4,80 BGN";?>
<script>$('#sms_hint p').html('<?php echo $promo;?>a')</script>
This is an ajax request, an external .php file which contains all code from above, and if an input is changed this should update the index.php file.
Am I need to convert or encrypt to pass data?