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:
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'});
});
adattandolo però alle classi e agli id del mio form in questa pagina:
http://ladivinacomedia.altervista.or...rmazioni1.html
sapete come fare?