Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Dreamweaver (https://www.askmehelpdesk.com/forumdisplay.php?f=470)
-   -   Dreamweaver,jquery issue (https://www.askmehelpdesk.com/showthread.php?t=744402)

  • Apr 15, 2013, 09:49 AM
    fakrudheenkk
    Dreamweaver,jquery issue
    I am just beginning to
    Develop a website and I'm
    A newbie to web
    Development.
    I created a dreamweaver
    Template with a top level
    Navigation menu. The
    Menu was created using
    <li> and <a> with some
    Css. I used a class
    'selected' with li to make
    It seem selected.
    The jquery code:
    $("nav li").click(function
    (){
    $("nav li").removeclass();
    $(this).addclass
    ("selected");})
    Now to the problem...
    When I test the template file
    In browser, the clickd
    Menu item looks selectd. But
    After I added <a>
    Elements 'links' to some
    Other pages the 'selection'
    Is still on the first li.
    I think my question make
    Sense...
    Addtion:
    The a element is inside li
    And takes the same width
    And height of li. And if there is no
    Href to <a>,it works fine. Please help
    How to solve it
    Thanks

  • All times are GMT -7. The time now is 03:19 PM.