Ashley Cameron Design

Ashley Cameron Design

Get Latest Tweet

jQuerySnippets

About a 1 minute read

"Life is like riding a bicycle. To keep your balance, you must keep moving."

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>