pls somebody know where is problem ? want to use jquery in joomla backend, i read, that i must use jQuery.noConflict, cause of mootools in joomla, but with this code i get error:
jQuery is not defined
[Break on this error] jQuery.noConflict();
what is wrong ?? thanks
<div id="stlac">STLAC</div>
<?php
$document = &JFactory::getDocument();
$document->addScript(JPATH_SITE.'/media/system/js/jquery-1.2.6.min');
$document->addScriptDeclaration ('jQuery.noConflict();');
echo '<script type="text/javascript">
$("#stlac").hide();
</script>
';
?>
put this code on
admin.controller.php
or oncontroller.php
of your component foldertry this