jquery-h5form
jquery-h5form copied to clipboard
Placeholder in IE8 float input element
Placeholder in IE8 element which has css float property does not render properly.
I have made own patch: On line 304 (2.13.1) Instead: var phld = $('').insertBefore(ui) .addClass(opts.classPlaceholder) .text(placeholder).click(function() { ui.focus(); }); Should be: var phld = $('') .addClass(opts.classPlaceholder) .text(placeholder).click(function() { ui.focus(); }); if (ui.css('float') !== 'none') { var cont = $('
').css('float', ui.css('float')); cont.insertBefore(ui); ui.css('float', 'none'); ui.remove(); cont.append(phld); cont.append(ui); } else { phld.insertBefore(ui); }