If you want the link to stay selected (using your current code) you will need to do something like this:
give the <a> tags an id. (eg: <a ..... id="link1"> )
It's a bit tricky for me to understand exactly what you are trying to do, but to select the link, you can use jquery to do:
$('#link1').setFocus(); and this would setfocus (select) the link in question.
Isaac
ASKER
Thanks!
For a better explanation, here's an example:
Let's say I have the links below, if the user clicks Link B, I want it to be selected until another link is selected. So if they selected Link A, Link B won't be bold and underlined anymore but Link A will.
Link A Link B
Link C
Hope that makes sense. I will give what you have a try though.
Thanks again!
themrrobert
What you describe here can be accomplished with css.
Assuming all of your links are of the class="mylinks" then in your stylesheet.css:
I set it up in SharePoint 2007 web part page and the problem is that when I click on the link, it does not work. As you can see from my initial code above, the page redirects to itself and the page refreshes.
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
give the <a> tags an id. (eg: <a ..... id="link1"> )
It's a bit tricky for me to understand exactly what you are trying to do, but to select the link, you can use jquery to do:
$('#link1').setFocus(); and this would setfocus (select) the link in question.