[Solved] display single value of php array

[ad_1] echo $form->data[‘Itemid’]; Or if you mean inside the foreach loop (because you’ve got other stuff to do there), then use this: foreach($form->data as $key => $value) { if( $key === ‘Itemid’ ) echo $form->data[‘Itemid’]; } 2 [ad_2] solved display single value of php array

[Solved] Using JFactory::getDocument in Joomla 3.0 with jQuery

[ad_1] Try using the following: <?php $document = JFactory::getDocument(); $js=” (function($) { $(document).ready(function(){ $(“a”).click(function(event){ alert(“As you can see, the link no longer took you to jquery.com”); event.preventDefault(); }); }); })(jQuery);”; $document->addScriptDeclaration($js); ?> Hope this helps 1 [ad_2] solved Using JFactory::getDocument in Joomla 3.0 with jQuery