kenkeiter / skeuocard

Skeuocard progressively enhances credit card inputs to provide a skeuomorphic interface.
http://kenkeiter.com/skeuocard/
MIT License
3.23k stars 231 forks source link

Skeuocard + Jquery + jQuery.noConflict() &| Other Lib #86

Closed hackin88 closed 11 years ago

hackin88 commented 11 years ago

The error is still occurring

I put the following examples

look

http://www.cerebrum.com.br/diversos/skeuocard_success.html

http://www.cerebrum.com.br/diversos/skeuocard_fail.html

kenkeiter commented 11 years ago

Thanks for the examples; the problem is actually fixed in 1.0.0 -- you're just using it incorrectly in the "skeuocard_fail" example, by using the $ to make a query for the containing element.

jQuery.noConflict() causes the $ alias to disappear from the global scope. Try instantiating your Skeuocard instance like so:

window.card = new Skeuocard(jQuery("#skeuocard"), {
  debug: true
});

Note that the call to $("#skeuocard") has been replaced with jQuery("#skeuocard").

Hope it works out :palm_tree:

hackin88 commented 11 years ago

Updated

from

$(document).ready(function(){

to

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


Thanks Man