My JQuery code is quite simple and it controls the hiding/unhiding of an element depending on which tab is hovered over:
HTML:
<div class="row col-sm-4">
<ul class="text-center">
<li><p class="chat-provider-tab tab">Chat Provider</p></li>
<li><p class="operations-tab tab">Operations</p></li>
<li><p class="proactive-chat-tab tab">Proactive Chat</p></li>
</ul>
</div>
<div class="row col-sm-8">
<p class="chat-provider helptip" style="display: none">Chat Provider</p>
<p class="operations helptip" style="display: none">Operations</p>
<p class="proactive-chat helptip" style="display: none">Proactive Chat</p>
</div>
JQuery:
$(".chat-provider-tab").hover( function(){
$(".chat-provider").toggleClass("activetab")
});
$(".operations-tab").hover( function(){
$(".operations").toggleClass("activetab")
});
$(".proactive-chat-tab").hover( function(){
$(".proactive-chat").toggleClass("activetab")
});
I have attempted to automate this process but so far I haven't been successful in replicating the effectiveness of the current method.
Thank you, Suxors