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:
    164
    Likes Received:
    12
    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 Jr. VIP Jr. VIP

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

    tb303 Power Member

    Joined:
    Dec 18, 2011
    Messages:
    734
    Likes Received:
    388
    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,041
    Likes Received:
    10,830
    Occupation:
    WHEREZ MA
    Location:
    BITCOINS AT?
    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 ™ Registered Member

    Joined:
    Feb 29, 2012
    Messages:
    97
    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:
    164
    Likes Received:
    12
    Location:
    Probably Reddit.
    Good to know, but each list item has a different link to direct to