The class ‘select’ is to change the look of that #nav a so that it helps the visitor to know on what page they are…
The code work but the class is added on during the click and then it disapears. How can I do so that it stays even after the click…??
Sounds like you’re trying to style the navigation tab for the current page?
If you’re building the navigation dynamically, WP adds the class “current_page_item” to the appropriate li tag automatically that you can style.