I have a menu with some content that our client hasn't added yet, here's an example of one menu:
**CLINICAL MATERIALS – NUTRAFUSE**
Clinical Studies & Articles – Coming Soon
Counseling Sheets – Coming Soon
Prescriber’s Guide – Coming Soon
Rx Pads/Order Forms – Coming Soon
Webinars – Coming Soon
I would like it to appear like this.
**CLINICAL MATERIALS – NUTRAFUSE**
Clinical Studies & Articles...
Counseling Sheets...
Prescriber’s Guide...
Rx Pads/Order Forms...
Webinars...
and show the original when an item is hovered over i think there's a way to truncate the text starting from the back using just css, but i'm not entirely sure. might need jquery.
thanks for help in advance!
EDIT
if anyone who answers could make a fiddle if using jquery because i'm still not that great with java of any kind
EDIT with code HTML
<div class="widget_nav_menu"><h3>Clinical Materials</h3>
<div class="materials">
<ul class="sub-menu">
<li><a><a>link1</a></li>
<li><a><a>link2 - Coming Soon</a></li>
<li><a><a>link3</a></li>
<li><a><a>link4 - Coming Soon</a></li>
<li><a><a>link5 - Coming Soon</a></li>
<li><a><a>link6 - Coming Soon</a></li>
</ul>
</div>
</div>
there isn't any javascript or css that pertains with what i'm needing to do
EDIT much simpler solution for this issue. I deleted " - coming soon" from all my menu items in the wordpress dashboard, then used this to switch between the two
.coming-soon:after {
content: '...';
}
.coming-soon:hover:after {
content:' - Coming Soon'
}
Thanks for the help everyone!