jQuery “characters remaining” script
This is a jQuery script for displaying “characters remaining” for input fields.
It will look for any input element with the class “input” (or whatever you specify) and use the element’s maxlength attribute as the value to count against and update the “fieldName-counter” element.
This is a very useful script for those occasions when you want to limit the character entry for an input field.
<!-- input and character count element -->
<span id="fieldName-counter">100</span> characters remaining<br />
<input type="text" name="fieldName" id="fieldName" maxlength="100" class="input" />
<!--/elements-->
<script type="text/javascript">
$(document).ready(function() {
// change .input to desired class
$('.input').each(function() {
var inp = $(this);
var maxlen =inp.attr('maxlength');
if (maxlen > 0) {
inp.bind('keyup', function(e) {
len = new Number(inp.val().length);
counter = maxlen-len;
counterObj = '#' + inp.attr('id') + '-counter';
$(counterObj).text(counter);
});
}
});
});
</script>

heya brilliant little blogging site ya have here
I operate the same exact web theme on mine but for whatever silly issue it seems to reload earlier on your blog although the one you have carries much more content. Have you been applying any individual plug ins or widgets which speed it up? If you might be able to share the widgets so maybe I could use them on my own internet sites so twilight breaking dawn supporters could watch twilight eclipse online trailers and clips more quickly I’d be grateful – kudos in advance
Thanks for the comments. I appreciate it. While I would love to take credit for the speed of the site, I’m going to have to give credit to my host, JustHost.com. If your host uses a remote database host server, that could be your problem. All of my previous hosts used remote MySQL servers and the performance of my sites were extremely slow compared to sites I had developed which utilized a local MySQL host.
If you don’t have a choice, but to stick with your current host, look at a WordPress Cache plug-in. Once your page/post is published, the page is stored as a static file and there’s no call to the database. This will increase your performance a ton.
Hope that helps. Let me know if you have any other questions.
great post as usual!
Hey try this one:
http://www.arunraj.co.in/index.php?option=com_content&view=article&id=5:chars-left&catid=4:javascript&Itemid=9