jQuery – Word and Character Counter

MacBook avec code sur un bureau

A small script to count the number of words and/or characters in an input or textarea field <input id="text" name="text" type="text"> <span id="count"></span>"; We place the script in jQuery’s ready function to make sure the HTML has been fully loaded. <script></script> (document).ready (function) count ($("#text"),$("#count") $("#text"). count ($("#text"),$("#count") }); }); function count (src,dest) var txtVal … Read more

jQuery file Upload – Basic solution with a callback

MacBook avec code sur un bureau

jQuery-File-Upload How to use the basic solution from http://blueimp.github.com/jQuery-File-Upload/ and make it work for all browsers (special dedication to Internet Explorer). The basic version has the advantage of not being overloaded with libraries and above all is much easier to import into an already-created website. Libraries Setting up To begin with, go to the address … Read more