Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Probably a simple answer but… Re: Probably a simple answer but…

#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
');