…
…
…
…
…
Per molti, lo sfondo giallo che aggiunge Chrome negli input, risulta noioso e rovina la grafica del proprio sito.
In questo tutorial vi mostreremo come eliminarlo preservando l’inserimento dei dati.
if (navigator.userAgent.toLowerCase().indexOf("chrome") >= 0) { $(window).load(function(){ $('input:-webkit-autofill').each(function(){ var text = $(this).val(); var name = $(this).attr('name'); $(this).after(this.outerHTML).remove()…
…
…
…
In questo tutorial vi mostreremo come limitare il numero di checkbox che possono essere selezionate.
(function($) { $.fn.limit = function( n, callback ) { callback = typeof( callback ) === 'function' ? callback : function() {}; var elements = this; return elements.each( function() { $(this).click( function() { if( elements.filter(':checked').length < = n ) { return callback(); } else { return true; } }); }); }; })…