I have a text 'placeholder' which is equal to "New Password (leave blank to leave unchanged)". I want only the part in brackets to change of color, meaning 'New Password' will stay red and the sentence in brackets would change to blue in this case.
Any help?
Code:
<input type="password" class="input-text" name="password_1" id="password_1" placeholder="New Password (leave blank to leave unchanged)">
Css: (this does change the whole placeholder text sentence)
input[type="text" i].form-row::-webkit-input-placeholder {
color: #757575;
}
So as final answer the placeholder="New Password (leave blank to leave unchanged)" part will change to =
New Password - color: red;
(leave blank to leave unchanged) - color: blue;