Search code examples
jqueryfunctiondefined

Jquery/JS - Function not defined



can anybody tell me why i get the error "translater is not defined" ?

working example http://jsfiddle.net/PkqKg/7/

I am confused.Thanks in advance!
Peter


Solution

  • jsfiddle 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() {.. }