I am going to call the elements of the following array into jquery.
$options[] = array( 'title' => 'Upload Favicon',
'id' => 'favicon',
'type' => 'upload' );
I have tried the following, but it does not work..
jquery("'.$option['id'].'").hide();
May be I am wrong, but I myself guess that it is because in the jquery code there is no # for id calling, but I do not know how to add #.
Please help..
The obvious problem is here:
This says “add an element to the array
$options, and set that element’s value to the array'title' => 'Upload Favicon'.... If$optionis not yet set, it will be created as an array. So it will effectively be like this:This probably isn’t what you mean, simnce you’ll need to access it like this:
To fix it, remove the
[]: