Jquery/JS - Function not defined
working example http://jsfiddle.net/PkqKg/7/
I am confused.Thanks in advance!
开发者_开发知识库 Peterjsfiddle runs the contents of the Javascript box inside a closure, so your variables cannot be accessod globally. You can do this if you want
window.translater = function() {.. }
Or simply change it to no wrap(head or body) http://jsfiddle.net/PkqKg/9/
or you can use as well like this :
http://jsfiddle.net/corotchi/PkqKg/10/
精彩评论