Ashley Cameron Design

Ashley Cameron Design

Get Latest Tweet

jQuerySnippets

About a 1 minute read

"Not until we are lost do we begin to understand ourselves."

Henry David Thoreau


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>