$.highlight

$.highlight() highlights elements when hovering on or clicking another element.

Example:

<div data-toggle="highlight" data-target="a.red" data-classes="active">Link</a>
<div data-toggle="highlight" data-target="a.red" data-classes="active" data-mode="click">Link</a>
<script>
  $('body').highlight({
    classes: 'shadow',
    mode: 'click'
  })
</script>

$.highlight attributes

When we run $('body').highlight(), the body is called a “container”. It listens to events on “triggers”, like <... data-toggle="highlight">

Highlight triggers support these attributes:

Highlight containers support these attributes:

$.highlight events