Ashley Cameron Design

Ashley Cameron Design

Get Latest Tweet

jQuerySnippets

About a 1 minute read

"It is the supreme art of the teacher to awaken joy in creative expression and knowledge."

Albert Einstein


1
2
3
4
5
6
7
//change username 'ashleycam3ron' to your user
//change #twitter to the element you want to replace
<script>
$.getJSON("http://api.twitter.com/1/statuses/user_timeline/ashleycam3ron.json?count=1&include_rts=1&callback=?", function(data) {
     $("#twitter").html(data[0].text);
});
</script>