Innehåll taggat med "jQuery"
Artiklar och demos
Maxlength with jQuery
This plugin makes it easy to apply a "maxlength" attribute to custom elements for example a <textarea>. It also gives you the possibility to add a nice character counter under the element that shows the user how many chars he/she has left before the maxlength is reached, and/or an alert message.
To use this on a simple text area, all you have to do is:
<script type="text/javascript">
$(document).ready(function(){
$('#textarea_1_1').maxlength();
});
</script>
Cookie plugin for jQuery
This is an extremely easy plugin I found. It is made by Klaus Hartl and it makes the work with cookies very slightly.
Just take a look at the examples:
Hantera dina JavaScript cookies enkelt med jQuery
Idag sprang jag på en läcker jQuery plugin som hanterar cookies på ett enkelt och smidigt sätt. Visst, det är inte jättesvårt att hantera detta själv, men för att göra det super enkelt kan man använda sig av detta plugin som hel enkelt heter Cookie.
Guessr: Gissa Flickr tags
Chris Barr har gjort ett kul litet spel med jQuery, det kallas för Guessr.
Det går ut på att man får se ett gäng bilder som hämtas från Flickr.com med en slumpad tag, man skall sedan på tid, lista ut vilket tag det är som är gemensam för alla bilderna.
30 sekunder är den tid du har på dig att gissa rätt.
- 1 av 2
- ››






