I'm filling an input type hidden field with an array of values from PHP:
foreach ($categorie as $cat) {
$elenco_categorie .= $cat['nome'].", ";
}
echo '<input type="hidden" name="elenco_cat" value="'.$elenco_categorie.'">';
and after that i am printing the field which will contain the list of all my categories, separated by ", ". I don't know how to fill a js plugin parameter that requires an array with the values in the input type hidden. The parameter is like:
{
categories: [here i need to echo the input type hidden value]
}