Skip to content

Tutorials / Programming tips Posts

Append New HTML

var sometext = “here is more HTML”; $(“p#text1”).append(sometext); // added after $(“p#text1”).prepend(sometext); // added before

Leave a Comment

Scroll to Top

$(“a[href=’#top’]”).click(function() { $(“html, body”).animate({ scrollTop: 0 }, “slow”); return false; });

Leave a Comment