I try to add another title to an input element, without success. Please find the following fiddle. What I intend to do is display another title on input when I mouse hold down
<input title="this is a test">
input {
position: relative;
}
input:active:after {
content:attr(title);
padding:5px;
border:1px solid #ccc;
top:5px;
right:10%;
background: #bada55;
}
Here is the fiddle: https://jsfiddle.net/flamant/v47byjLf/5/
EDIT
Hello, I think there was a misunderstanding. I wanted to add the same title as the existing one, but by mouse holding down. I found the solution. Here is the fiddle: https://jsfiddle.net/flamant/v47byjLf/14/