Sorry, really stupid question here. If you post a question about javascript or jquery, people often say - create a jsfiddle.
So, I did. My question will be about getting divs to slide up using jquery but, I can't even get a basic javascript function to run in jsfiddle.
<div onclick="showit()">Hello</div>
function showit()
{
alert('hi');
}
A div, click on it to call a javascript function, but jsfiddle says the function is not defined. Can you not do this in jsfiddle?
See Question&Answers more detail:os