Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript field tooltip

Marcin Beczynski
Contributor
July 5, 2018

Hey,

I'm looking for a solution to implement tooltip for custom field already found a JS what could be used but not exactly know how to change it to be suitable for JS include the plugin. The same code should be able to work on Google Chrome console. 

Code what I used in the description.

 

<script type="text/javascript">
function showHelp() {
var listenersDiv = document.getElementById("NameOFCustomField");
if (listenersDiv.style.display == 'none') {
listenersDiv.style.display = '';
} else {
listenersDiv.style.display='none';
}
}
</script>
<a href="#" onclick="showHelp(); return false;"><img src="https://png.icons8.com/metro/50/000000/help.png" height="20" width="20"></a>
<div id="NameOFCustomField" style="display:none">
<<<<Description>>>
</div>

 

0 answers

Suggest an answer

Log in or Sign up to answer