Home › Forums › JavaScript › Probably a simple answer but… › Re: Probably a simple answer but…
January 5, 2011 at 5:32 pm
#67366
jamygolden
Member
$(document).getElementById ('#footer p').style.border = "solid 5px #c0c0c0";
You are mixing up javascript and jQuery.
Your javascript should probably look something like this:
$(document).ready(function() {
$('.navigation li ul, .fade img').hide();
$('.navigation li a').click(function(){
$(this).siblings('ul').slideToggle();
return false;
});
$('#footer p').css('border', '5px solid #c0c0c0');
});
I haven’t seen the html, but I think that should work.
In order to add html after an element. You would do this:
$('#header').after('This is an example');