Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8032319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:21:08+00:00 2026-06-05T01:21:08+00:00

i have following code for my menu on page <td width=200 valign=top align=left bgcolor=#ffffff>

  • 0

i have following code for my menu on page

<td width="200" valign="top" align="left" bgcolor="#ffffff">
    <div id="stemenu">
        <div id="mbuttonon">
            <a class="mwink" href="index.html">Home</a>
        </div>
        <table cellspacing="0" cellpadding="0" width="100%" align="center">
            <tr>
                <td width="100%" height="6"></td>
            </tr>
        </table>
        <div id="mbutton">
            <a class="mwink" href="index.html">About us</a>
        </div>
        <table cellspacing="0" cellpadding="0" width="100%" align="center">
            <tr>
                <td width="100%" height="6"></td>
            </tr>
        </table>
        <div id="mbutton">
            <a class="mwink" href="index.html">FAQs</a>
        </div>
        <table cellspacing="0" cellpadding="0" width="100%" align="center">
            <tr>
                <td width="100%" height="6"></td>
            </tr>
        </table>
        <div id="mbutton">
            <div id="plus">
                <a href="javascript:animatedcollapse.toggle('aa')"><img src="images/plus.gif"></a>
            </div>
            <a class="mwink" href="index.html">Conditions we treat</a>
        </div>
        <div id="aa" style="width: 160px; display:none;">
            <ul>
                <li>
                    <a class="mlink" href="#">MSK</a>
                    <li>
                        <a class="mlink" href="#">Neurological</a>
                        <li>
                            <a class="mlink" href="#">Paediatrics</a>
                            <li>
                                <a class="mlink" href="#">Surgery</a>
            </ul>
        </div>
        <table cellspacing="0" cellpadding="0" width="100%" align="center">
            <tr>
                <td width="100%" height="6"></td>
            </tr>
        </table>
        <div id="mbutton">
            <a class="mwink" href="index.html">Our clinics</a>
        </div>
        <table cellspacing="0" cellpadding="0" width="100%" align="center">
            <tr>
                <td width="100%" height="6"></td>
            </tr>
        </table>
        <div id="mbutton">
            <div id="plus">
                <a href="javascript:animatedcollapse.toggle('ab')"><img src="images/plus.gif"></a>
            </div>
            <a class="mwink" href="index.html">Services</a>
        </div>
        <div id="ab" style="width: 160px; display:none;">
            <ul>
                <li>
                    <a class="mlink" href="#">Clinic Appointments</a>
                    <li>
                        <a class="mlink" href="#">Gym rehabilitation</a>
                        <li>
                            <a class="mlink" href="#">Home visits</a>
                            <li>
                                <a class="mlink" href="#">Hydrotherapy</a>
                                <li>
                                    <a class="mlink" href="#">Musculoskeletal physiotherapy</a>
                                    <li>
                                        <a class="mlink" href="#">Neurological physiotherapy</a>
                                        <li>
                                            <a class="mlink" href="#">Paediatric physiotherapy</a>
            </ul>
        </div>
        <table cellspacing="0" cellpadding="0" width="100%" align="center">
            <tr>
                <td width="100%" height="6"></td>
            </tr>
        </table>
        <div id="mbutton">
            <div id="plus">
                <a href="javascript:animatedcollapse.toggle('ac')"><img src="images/plus.gif"></a>
            </div>
            <a class="mwink" href="index.html">Treatments</a>
        </div>
        <div id="ac" style="width: 160px; display:none;">
            <ul>
                <li>
                    <a class="mlink" href="#">Acupuncture</a>
                    <li>
                        <a class="mlink" href="#">Electrotherapy</a>
                        <li>
                            <a class="mlink" href="#">Gait Ax</a>
                            <li>
                                <a class="mlink" href="#">Hydrotherapy</a>
                                <li>
                                    <a class="mlink" href="#">Manipulation</a>
                                    <li>
                                        <a class="mlink" href="#">Massage</a>
                                        <li>
                                            <a class="mlink" href="#">Neurological rehabilitation</a>
                                            <li>
                                                <a class="mlink" href="#">Orthotics</a>
                                                <li>
                                                    <a class="mlink" href="#">Paediatric physio</a>
                                                    <li>
                                                        <a class="mlink" href="#">Pain management</a>
                                                        <li>
                                                            <a class="mlink" href="#">Physiotherapy</a>
                                                            <li>
                                                                <a class="mlink" href="#">Respiratory treatment</a>
            </ul>
        </div>
        <table cellspacing="0" cellpadding="0" width="100%" align="center">
            <tr>
                <td width="100%" height="6"></td>
            </tr>
        </table>
        <div id="mbutton">
            <a class="mwink" href="index.html">Contact us</a>
        </div>
        <table cellspacing="0" cellpadding="0" width="100%" align="center">
            <tr>
                <td width="100%" height="0"></td>
            </tr>
        </table>
    </div>
    <br>
    <br>
</td>

clicking on PLUS button opens sub menu,

my issue is, How can I make complete div an anchor link ( clicking on any part of mbutton div, it should follow the link) WHILE clicking on PLUS button, it should open the sub menu..

Basically, I want to make all the part clickable, not only the text (e.g Home, About us), while plus button should open sub menu too…

Can somebody guide me? for the moment, either I can make only anchor text clickable or I lose javascript sub menu opening…

Can I do it in CSS??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:21:11+00:00Added an answer on June 5, 2026 at 1:21 am

    Firstly, You have put same ids for more than one element, thats wrong. Assign uniqpe Id name for each element.
    Try this :

    <td width="200" valign="top" align="left" bgcolor="#ffffff">
     <div id="stemenu">
     <div id="mbuttonon"><a class="mwink" href="index.html">Home</a></div>
    
    <table cellspacing="0" cellpadding="0" width="100%" align="center"><tr><td width="100%" height="6"></td></tr></table>
    <div id="mbutton"><a class="mwink" href="index.html">About us</a></div>
    <table cellspacing="0" cellpadding="0" width="100%" align="center"><tr><td width="100%" height="6"></td></tr></table>
    <div id="mbutton"><a class="mwink" href="index.html">FAQs</a></div>
    <table cellspacing="0" cellpadding="0" width="100%" align="center"><tr><td width="100%" height="6"></td></tr></table>
    <div id="mbutton"><div id="plus"  class='plus'><a href="#"><img src="images/plus.gif">   </a></div> <a class="mwink" href="index.html">Conditions we treat</a></div> 
    <div id="aa" style="width: 160px; display:none;">
    <ul><li><a class="mlink" href="#">MSK</a>
    <li><a class="mlink" href="#">Neurological</a>
    <li><a class="mlink" href="#">Paediatrics</a>
    <li><a class="mlink" href="#">Surgery</a>
    </ul></div>
    
    <table cellspacing="0" cellpadding="0" width="100%" align="center"><tr><td width="100%" height="6"></td></tr></table>
    <div id="mbutton"><a class="mwink" href="index.html">Our clinics</a></div>
    <table cellspacing="0" cellpadding="0" width="100%" align="center"><tr><td width="100%" height="6"></td></tr></table>
    <div id="mbutton"><div id="plus" class='plus'><a href="#"><img src="images/plus.gif">    </a></div> <a class="mwink" href="index.html">Services</a></div> 
    <div id="ab" style="width: 160px; display:none;">
    <ul>
     <li><a class="mlink" href="#">Clinic Appointments</a>
     <li><a class="mlink" href="#">Gym rehabilitation</a>
     <li><a class="mlink" href="#">Home visits</a>
     <li><a class="mlink" href="#">Hydrotherapy</a>
     <li><a class="mlink" href="#">Musculoskeletal physiotherapy</a>
     <li><a class="mlink" href="#">Neurological physiotherapy</a>
     <li><a class="mlink" href="#">Paediatric physiotherapy</a>
     </ul></div>
    
     <table cellspacing="0" cellpadding="0" width="100%" align="center"><tr><td  width="100%" height="6"></td></tr></table>
    
     <div id="mbutton"><div id="plus"  class='plus'><a href="#"><img src="images/plus.gif"></a></div> <a class="mwink" href="index.html">Treatments</a></div> 
     <div id="ac" style="width: 160px; display:none;">
     <ul>
     <li><a class="mlink" href="#">Acupuncture</a>
     <li><a class="mlink" href="#">Electrotherapy</a>
     <li><a class="mlink" href="#">Gait Ax</a>
     <li><a class="mlink" href="#">Hydrotherapy</a>
     <li><a class="mlink" href="#">Manipulation</a>
     <li><a class="mlink" href="#">Massage</a>
     <li><a class="mlink" href="#">Neurological rehabilitation</a>
     <li><a class="mlink" href="#">Orthotics</a>
     <li><a class="mlink" href="#">Paediatric physio</a>
     <li><a class="mlink" href="#">Pain management</a>
     <li><a class="mlink" href="#">Physiotherapy</a>
     <li><a class="mlink" href="#">Respiratory treatment</a>
     </ul></div>
    
     <table cellspacing="0" cellpadding="0" width="100%" align="center"><tr><td width="100%" height="6"></td></tr></table>
    
     <div id="mbutton"><a class="mwink" href="index.html">Contact us</a></div>
     <table cellspacing="0" cellpadding="0" width="100%" align="center"><tr><td width="100%" height="0"></td></tr></table>
    
     </div>
    
     <br><br>
    
     </td>​
    

    Javascript :

     jQuery(".plus").click(function(){
          jQuery(this).parent('div').next('div').slideToggle();
     });​
    

    I have assigned a common class ‘plus ‘ to all divs which contains plus image, so that you don’t need to writ code for each menu.

    Here is the Demo.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following HTML code based on a tab menu format, i.e: <div
I have following code in the html file: <div class=navbar navbar-fixed-top> <div class=navbar-inner> <div
Hello I have the following code to generate my navigation/page menu along with applying
I have the following code to layout the menu for my page: //Header Conainer
I have following code: <style> .header { height:20px; width:100px; } .content { height:100px; width:100px;
I have the following index.html page set-up: <html> <head> </head> <body> <div id=container> <div
I have the following goal: I Have a list of top menu links on
I have the following code in my site.master for a menu: <ul id=menu> <li><%=
I have the following code which fixes the position of a menu at the
I am a rookie CSS user, i have the following nav menu code and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.