2

I write a vertical tab in my store home page, and I should use jquery-1.10.2.min.js. but it has confilict with other scripts and somethings showing wrong in store.

DEMO of vertical tab.

How can I fix it?

asked Jul 5, 2015 at 7:25

1 Answer 1

3

You can use noConflict

like

var $j = jQuery.noConflict();

answered Jul 5, 2015 at 7:56
5
  • 1
    Add this in script of vertical tab? Commented Jul 5, 2015 at 8:06
  • no problem. set top of script and all $ convert to $j (only this script) Commented Jul 5, 2015 at 8:41
  • It doesn't work!! Commented Jul 5, 2015 at 8:57
  • If you've done as Abdus said and made sure all jquery files use $j instead of ,ドル then also make sure 1. there is only one instance of jquery on the page 2. noconflict comes right after jquery is called. Otherwise can you provide the error message you see in the console? Commented Jul 5, 2015 at 9:37
  • 1
    I found where is the problem, I add jquery-1.10.2.min.js and I have jquery-1.7.1.js in theme. I remove jquery-1.10.2.min.js and use what Abdus said and all things work good. Commented Jul 5, 2015 at 9:50

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.