var encoded = $("#bauer").text();
var charLength = encoded.length;
I then want to take encoded and put it in a tweet. How can i make sure the charLength doesnt exceed 140 characters for the tweet – ie. it still sends the tweet but trims it below 140 characters?
You could use javascript’s substring method.