jquery-h5form icon indicating copy to clipboard operation
jquery-h5form copied to clipboard

Placeholder in IE8 float input element

Open rvaleev opened this issue 12 years ago • 1 comments

Placeholder in IE8 element which has css float property does not render properly.

rvaleev avatar Feb 14 '14 07:02 rvaleev

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); }

rvaleev avatar Feb 14 '14 07:02 rvaleev