L'attributo placeholder in ie non è disponibile ma si può usare javascript per avere quella funzione. Siccome non conosco per niente il linguaggio vorrei capire come usare questo codice:
adattandolo però alle classi e agli id del mio form in questa pagina:codice:(function($) { $.fn.placeholder = function(options) { var that = this; if(!that.is('input[type=text]')) { return; } var defaults = { text: 'Placeholder' }; options = $.extend(defaults, options); var top = that.offset().top; var left = that.offset().left; return that.each(function() { $('<span class="placeholder"/>').text(options.text). css({ position: 'absolute', top: top, left: left }).insertAfter(that); that.focus(function() { that.next('span.placeholder').hide(); }); that.blur(function() { if(that.val() == '') { that.next('span.placeholder').show(); } }); }); }; })(jQuery); $(function() { $('#text', '#form').placeholder({text: 'Lorem'}); $('#text2', '#form').placeholder({text: 'Lorem ipsum'}); });
http://ladivinacomedia.altervista.or...rmazioni1.html
sapete come fare?

Rispondi quotando