I am using an input text, this input text is fired a datepicker() functionwhen it clicks.
I want to make a message when the user hover over this input text.
I tried this
css
#CldrFrom:hover:after{
background: #333;
background: rgba(0,0,0,.8);
border-radius: 5px;
bottom: 26px;
color: #fff;
content: attr(messageHint);
left: 20%;
padding: 5px 15px;
position: absolute;
z-index: 98;
width: 220px;
}
#CldrFrom:hover:before{
border: solid;
border-color: #333 transparent;
border-width: 6px 6px 0 6px;
bottom: 20px;
content: "";
left: 50%;
position: absolute;
z-index: 99;
}
html
<input type="text" id="CldrFrom" placeholder="From" style="width:15%" messageHint="From" />
When I hover over the input text. nothing happens
why please?
note
the input text is hidden when the page loads but then I make it appears using jquery in a button. but Idon't think that could make the problem.