how to avoid $ conflict in the callback function of jquery with prototype
<pre><code>jQuery.noConflict(); or $.noConflict();    
(function($) { 
    $(document).ready( function() {
     // Show menu when #input1 is clicked
        $("#input1").contextMenu({
        menu: 'myMenu'
        },
         function(action, el, pos) {
        alert("clicked");
        });
    })(jQuery); 
</code></pre>

<p>In above code, i have avoided conflict with the prototype by using function($){}(jQuery);
But in the callback function(action, e1, pos) it is again calling function from prototype.</p>

<p>Both $.noConflict(); &amp; jquery.noConflict(); i have tried but no use.
Please provide suggestion show can I avoid this conflict.</p>

<p>The conflict is resolved now. Thanks to all for their expert advices.
But now the other problem is context menu is not opening on right clicking input1. Please provide your valuable suggestions.</p>

<p>Thanking You.   </p>
