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.
http://jsfiddle.net/ubq6E/
<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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…