Link to home
Start Free TrialLog in
Avatar of Robert Granlund
Robert GranlundFlag for United States of America

asked on

Palce a PHP avariable into JQuery Script

How do you place a PHP variable into a JQuey Script?
See currentAmount: below.
<?php
$gaol = "23";
?>

<script>
!function($){
$.fn.extend({
goalProgress: function(options) {
var defaults = {
goalAmount: 100,
[b]currentAmount:.'$goal'.,[/b]
speed: 1000,
textBefore: '',
textAfter: '',
milestoneNumber: 70,
milestoneClass: 'almost-full',
callback: function() {}
}

etc....

</script>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Robert Granlund

ASKER

Thanks!