jquery - Hide default title tooltip -


enter image description here

we can see above images, on hover of "create" button, 2 tooltips coming. here dont want default tooltip (small 1 below).

i want show customize tool tip

my code:

<style>  button[title]:hover:before {    content: attr(title);    padding: 2px 2px;    color: #333;    position: absolute;    left: 100px;     top: 320px;     z-index: 20;    white-space: nowrap;    -moz-border-radius: 2px;    -webkit-border-radius: 2px;    border-radius: 2px;    -moz-box-shadow: 0px 0px 4px #222;    -webkit-box-shadow: 0px 0px 4px #222;    box-shadow: 0px 0px 4px #222;    background-image: -moz-linear-gradient(top, #eeeeee, #cccccc);    background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #eeeeee),color-stop(1, #cccccc));    background-image: -webkit-linear-gradient(top, #eeeeee, #cccccc);    background-image: -moz-linear-gradient(top, #eeeeee, #cccccc);    background-image: -ms-linear-gradient(top, #eeeeee, #cccccc);    background-image: -o-linear-gradient(top, #eeeeee, #cccccc);  }    </style>    <button onclick="setactionandsubmit('id_form_workitem_create', 'create');" title="please fill mandatory fields">  									 	create  </button>

please help, in advance

the small tooltip appears being displayed because set title attribute in dom node. in following jsfiddle, solution proposed change attribute holds tooltip content in button , in css.

jsfiddle


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -