Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Please tell me how to Navigate between Multiple Controls within a web part in sharepoint 2007, by using javascript.

share|improve this question
    
Can you please explain your question in more detail? What do you mean exactly by "Navigate between Multiple Controls"? –  Vardhaman Deshpande Feb 7 '12 at 1:43
add comment

1 Answer

I think what you are trying to do is show and hide groups of controls, so you should put each set inside an HTML element such as a div or table for example, and give that an id. Then you can change the visibility of the alternate set when each is clicked. You would use something like:

document.getElementById('group1').style.visibility = "visible";
document.getElementById('group2').style.visibility = "hidden";

For the other group you would swap the hidden and visible values.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.