I have an unordered list of checkboxes and respective list names and I would like to have tooltips for the selection options, i.e. when the user hovers over the list name (e.g. category 1) a tooltip appears with text. Unfortunately, I cannot amend the HTML code and can only add CSS.
<ul>
<li><input type="checkbox" class="cat_input" name="sgeodir_subcategory1a" value="1"> category 1</li>
<li><input type="checkbox" class="cat_input" name="sgeodir_subcategory1b" value="1"> category 2</li>
<ul>
Is there any way to target the different list items and add tooltips? I was thinking perhaps via the "name" that is the only attribute that is different for each list item?