jquery - TextField disappear when mouse leave -


when take off mousepointer textfield disappearing..i tried following code..which add attribute called visibility , setting value 'visible'..but did not work either..

please me solve problem..

code :

jq("#meteringpointtable").find(".search.results.field.point").mouseleave(function(){      jq("#meteringpointtable .search.results.field.point").attr('visibility','visible');`enter code here` }); 

new code :

   jq("#meteringpointtable").find(".search.results.field.point").mouseleave(functio‌​‌​n(){      jq(this).css({'visibility':'visible'});       console.log(jq(this).css('visibility'));  }); 

visibility css property should use way.

also seems using same selector while attaching event. can refer element this (domelement) /$(this) (jquery object).

jq("#meteringpointtable").find(".search.results.field.point").mouseleave(function(){      jq(this).css({'visibility':'visible'}); }); 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -