so I'm trying to apply the basic click show hide element, but for some reason it has no effect.
im using it through an external javascript file and including the latest jquery library included in my firebug main page shows the code, so I know that he picked it up
heres ive code tried
$(document).ready(function () {
$('#ecom').hide();
$('.eco').click(function () {
$('#ecom').show('slow');
return false;
});
$('.eco').click(function () {
$('#ecom').hide('fast');
return false;
});
});
HTML
<h2 class="eco">Ecommerce Web Design</h2>
<div id="ecom">content</div>
I myself do not see a problem
This solution, which I used at the end, does what I want to do :)
Thanks too for the answers.
$(document).ready(function () {
$('#ecom').hide();
$('.eco').click(function () {
$('#ecom').toggle('slow');
return false;
});
source
share