I want to test how my own function update works on jsfiddle but when I click the button I get an error that update is not defined.
How can I use my own functions on jsfiddle?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Two problems:
The first problem is that you have some extra text at the end of the script:
The second problem is that you are wrapping the function definitions inside the
onDomReadyfunction.Change this option to
no wrap(head)and it will work.