1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Simple coding help

Discussion in 'BlackHat Lounge' started by tripphxc, Dec 28, 2016.

  1. tripphxc

    tripphxc Junior Member

    Joined:
    Mar 23, 2008
    Messages:
    169
    Likes Received:
    15
    Location:
    Probably Reddit.
    I have a entire <li> list and I would like to make them clickable. So for example, how would I go about on making something like this clickable?

    Code:
    <li>Manhattan</li>
     
  2. Conor

    Conor Elite Member

    Joined:
    Nov 7, 2012
    Messages:
    3,579
    Likes Received:
    5,964
    Gender:
    Male
    Location:
    South Africa
    Home Page:
    Code:
    <li><a href="link">Manhattan</a></li>
     
    • Thanks Thanks x 4
  3. tb303

    tb303 Senior Member

    Joined:
    Dec 18, 2011
    Messages:
    850
    Likes Received:
    534
    or you can wrap the whole list ...
    Code:
    <a href="http://google.com">
    <li>one</li>
    <li>two</li>
    <li>three</li>
    </a>
     
  4. bartosimpsonio

    bartosimpsonio Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 21, 2013
    Messages:
    12,748
    Likes Received:
    11,414
    Occupation:
    COINZ
    Location:
    BUYAH
    Home Page:
    Code:
    <li>Manhattan</li>
    is actually clickable it just won't do anything when you click it :p
     
  5. s y n t a x ™

    s y n t a x ™ Junior Member

    Joined:
    Feb 29, 2012
    Messages:
    100
    Likes Received:
    7
    Gender:
    Male
    Occupation:
    None so far..
    Location:
    United States
    Home Page:
    Try this one also..

    Code:
    <a href="#"><li>one</li></a>
    <a href="#"><li>two</li></a>
    <a href="#"><li>three</li></a>
     
  6. tripphxc

    tripphxc Junior Member

    Joined:
    Mar 23, 2008
    Messages:
    169
    Likes Received:
    15
    Location:
    Probably Reddit.
    Good to know, but each list item has a different link to direct to