Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
235 views
in Technique[技术] by (71.8m points)

onload - Jquery plugin working in JSfiidle and not in my page

There is something i am missing on this jquery plugin which works in jsfiddle and not in my page.

This is a Jquery plugin for cash Register effect. Look here and you can see this effect on the number below VALOR LIQUIDATIVO.

I have pasted the same code in my page, but the plugin is not working. There is probably an issue about the option to run the script code "onload" as i have seen in this thread but i am not figuring out the problem. How i have to modify the file for my browser?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

This is the result of the copy and paste from jsfiddle in my notepad++

$(document).ready(function() {
    $('#valorliquidativo').cashRegister();
});? //<---

Notice the ?, it's being pasted with the code block and made the error appear. try to delete the empty line in your code block using backspace or manually write this code block.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...