1. How to convert integer number into float and change pattern
Ans.
<?php
$a = 2000;
$your_val= number_format($a/100,2,'.',',');
echo $your_val;
//output 20.00
?>
2.How to use php variable into jquery with if condition
Solution
<script>
$(document).ready(function(){
var limitvalue = '<?php if(isset($_GET['limitof'])) { echo $_GET['limitof']; }else { echo 5; } ?>';
$(".slctboxval").val(limitvalue);
});
</script>
Comments
Post a Comment