mstratman / jQuery-Smart-Wizard

flexible jQuery plug-in that gives wizard like interface
http://mstratman.github.com/jQuery-Smart-Wizard/
303 stars 164 forks source link

Error with jQuery.noConflict #26

Closed itsmejake closed 11 years ago

itsmejake commented 11 years ago

If i am implementing smart wizard 3 with noConflict the following error shows up:

Cannot call method 'addClass' of null

var $j = jQuery.noConflict();

$j(document).ready(function(){

  $j('#wizard').smartWizard();

});

How can i get it working with noConflict??

itsmejake commented 11 years ago

BTW. Smart Wizard 2 runs perfectly with noConflict. I need Version 3 though because of the method goForward

mstratman commented 11 years ago

Is the $j assignment being called too early? e.g.

$(document).ready(function() {
    var $j = jQuery.noConflict();
    $j(document).ready(function() {
        $j('#wizard').smartWizard();
    });
});

Otherwise, I don't know offhand what might be causing this. Post back here if you figure it out so we can help anyone else who comes across this problem.

itsmejake commented 11 years ago

Unfortunately, I couldn't find a solution for this. I'm not a jQuery expert though. Instead, I implemented my own goForward method in Version 2.0

itsmejake commented 11 years ago

Thanks anyways!