Passing php var to jquery file
I am using a color picker plugin which defaults to a specific color in an external js file:
var selcolor = 'b0e0e6';
$('#bcolor').crayonbox({
colors: new Array('#ffffff', '#b0e0e6', '#cccccc', '#000000'),
selected: '#'+selcolor
});
In the php file I get the default color from a mysql database. My question is how can I pass this php var with the default color to the external jquery file so it can use that instead of 'b0e0e6'? Thanks.