Note that there are some explanatory texts on larger screens.

plurals
  1. POConflict between jQuery Tools and another jQuery script
    primarykey
    data
    text
    <p>I'm using <a href="http://jquerytools.org/" rel="nofollow">jQuery Tools</a>(specifically, the form validator) and a <a href="http://archives-mike.brevoort.com/2010/08/10/introducing-the-jquery-facebook-multi-friend-selector-plugin/index.html" rel="nofollow">JQuery Facebook-related script</a> on one page of my website.</p> <p>Each script requires referencing both an external file in the "head" of my HTML as well as a separate script in the "body" of my HTML.</p> <p>Here is my code for the scripts in the "body" of my HTML (simplified):</p> <p><strong>First Script (Facebook script)</strong> `</p> <pre><code> function init() { FB.api('/me', function(response) { $(".s_name").replaceWith('&lt;input type="hidden" name="s_name" id="' + response.name + '" value="' + response.name + '" /&gt;'); ..do more replaceWith stuff }); } //Live update of page as user selects recipient and gift options $(".jfmfs-friend").live("click", function() { var friendSelector = $("#jfmfs-container").data('jfmfs'); ...do stuff}); ` </code></pre> <p><strong>Second script (jQuery Tools - validator)</strong> `</p> <pre><code> $("#form").validator({ position: 'top left', offset: [-5, 0], message: '&lt;div&gt;&lt;em/&gt;&lt;/div&gt;', singleError: true }); ` </code></pre> <p>Everything works correctly until the .click function of the first script is activated. At that point, the validator script stops working. I believe the issue is related to conflicting jQuery $'s, but I'm not sure how to fix it. I've tried using <code>jQuery.noConflict()</code> in various areas, but I haven't been successful and I'm not exactly sure how I should be using it.</p> <p>Any help would be greatly appreciated!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload