Messages : 61 Points : 596 Date d'inscription : 12/09/2014 Age : 32 Localisation : Dijon
Sujet: Javascripts Lun 5 Sep - 10:31
Bannières
Code:
$(function() {
var a = ["http://img11.hostingpics.net/pics/967899BanireIto.png", "http://img15.hostingpics.net/pics/949476BanireMaxwell.png", "http://img11.hostingpics.net/pics/850683BanZoel2.png" , "http://img15.hostingpics.net/pics/367704BanPiotr.png" , "http://img11.hostingpics.net/pics/418502BanAmbre.png"];
Messages : 61 Points : 596 Date d'inscription : 12/09/2014 Age : 32 Localisation : Dijon
Sujet: Re: Javascripts Lun 5 Sep - 10:31
Compteur de mots
Code:
jQuery(document).ready(function() {
function getWords() { var words = $('#text_editor_textarea').val().split(' '); var newArray = words.filter(function(v){return v!==''}); $('#titre_rep').text('Poster une réponse [' + newArray.length + ' mot(s)]'); }