https://bugzilla.wikimedia.org/show_bug.cgi?id=26135
Cacycle <cacycl...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cacycl...@gmail.com --- Comment #6 from Cacycle <cacycl...@gmail.com> 2011-01-24 21:59:24 UTC --- The only reliable and robust way that I have found to accomplish a help text that disappears on dropping and editing is as follows: Underlay the transparent input field with a div of the same size that holds the help text. Remove the help text for any editing activity. Without a separate div there is no way to untangle the existing help text from the dropped content. Would be nice if you could add this as this bug is slightly annoying in Firefox :-) <div class="parent"> <div class="help"></div> <input type="text" class="input" /> </div> .parent { position: relative; } .input, .help { position: relative; background: transparent; /* more styling here */ } .help { position: absolute; top: 0; left: 0; color: #888; border-color: transparent; background: white; } help.html(helpText); input.bind('click mouseup mousedown paste drop focus keydown', function(event) { help.val(''); input.unbind('click mouseup mousedown paste drop focus keydown'); }); -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l