Highlight the equivalent of the selected element
Guys I'm trying to get the function below to highlight the equivalent in position of a selected element from ".intro-nav li" as shown below. Any Ideas on how I can achieve that. Thanks
- <script>
- $(function(){
-
- if ( $(".faces:nth-of-type(1)").is("selected")
- $('.intro-nav li:nth-of-type(1)').addClass("selected");
- }
- });
- });
- </script>