What is the whole subject, there is a code:
<ul id="menu"> <li>111</li> <li class="cart_informer"> </li>
To get to 111, you need to do this:
$('#menu > li')
What do you need to do to get to cart_informer?
addition: <! - Menu -> <ul id = "menu"> <script type = "text / javascript"> $ (function () {var d = 300; $ ('# menu a'). each ( function () {$ (this) .stop (). animate ({'marginTop': '-80px'}, d + = 150);});
$('#menu > li').hover( function () { $('a', $(this)).stop().animate({ 'marginTop': '-2px' }, 200); }, function () { $('a', $(this)).stop().animate({ 'marginTop': '-80px' }, 200); }); }); </script> {foreach $pages as $p} {* Выводим только страницы из первого меню *} {if $p->menu_id == 1} <li {if $page && $page->id == $p->id}class="selected"{/if}> <a data-page="{$p->id}" href="{$p->url}">{$p->name|escape}</a> </li> {/if} {/foreach} <li class="cart_informer"> {include file='cart_informer.tpl'} </li> </ul> <!-- Меню (The End) -->
And this is the basket item code
$('form.variants').live('submit', function (e) { e.preventDefault(); button = $(this).find('input[type="submit"]'); if ($(this).find('input[name=variant]:checked').size() > 0) variant = $(this).find('input[name=variant]:checked').val(); if ($(this).find('select[name=variant]').size() > 0) variant = $(this).find('select').val(); $.ajax({ url: "ajax/cart.php", data: { variant: variant }, dataType: 'json', success: function (data) { $('#menu > li.cart_informer').html(data); if (button.attr('data-result-text')) button.val(button.attr('data-result-text')); } }); var o1 = $(this).offset(); var o2 = $('#menu > li.cart_informer').offset(); var dx = o1.left - o2.left; var dy = o1.top - o2.top; var distance = Math.sqrt(dx * dx + dy * dy); $(this).closest('.product').find('.image img').effect("transfer", { to: $('#menu > li.cart_informer'), className: "transfer_class" }, distance); $('.transfer_class').html($(this).closest('.product').find('.image').html()); $('.transfer_class').find('img').css('height', '100%'); return false; });