I am trying to get magento price format in php file using jquery / javascript function but facing problem.
What I have tried ....
<script>
var price = 10;
var priceFormat = '<?php echo Mage::helper('core')->currency("<script>document.write(price)</script>", true, false); ?>';
console.log(priceFormat); // output 0.00
</script>
However it should be 10.00
Is this right approach to get price format? If not then how can we achieve this?