Search code examples
jqueryhtmlcssinputbox

How to overwrite placeholder text of input box


I can't seem to figure out what is over writing the placeholder in this specific input box on a colour picker, I have a placeholder as":

placeholder="Type a hex (Or keyword)"

It's defaulting as "#FFFFFF" has anybody any idea why? I've tried to change both the value and placeholder of the input box and still nothing changes.


Solution

  • It's being injected by javascript.

    Try value="Type a hex (Or keyword)"

    I'm not sure if this will work, it depends on the JS script of the colorpicker.