How can I make an Entire List Item Clickable ?

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

User avatar
ifuturzcom
New php-forum User
New php-forum User
Posts: 7
Joined: Mon Mar 26, 2012 1:27 am
Contact:

How can I make an Entire List Item Clickable ?

Postby ifuturzcom » Sun Jun 24, 2012 11:15 pm

How can I make an Entire List Item Clickable ?

User avatar
Nullsig
php-forum Fan User
php-forum Fan User
Posts: 981
Joined: Thu Feb 17, 2011 6:52 am
Location: Racine, WI

Re: How can I make an Entire List Item Clickable ?

Postby Nullsig » Tue Jun 26, 2012 5:02 am

Code: Select all

<li onclick='doSomething();'>List Item 1</li>


That?

User avatar
freshnet
php-forum Active User
php-forum Active User
Posts: 283
Joined: Tue Feb 22, 2011 8:19 am
Location: Canada

Re: How can I make an Entire List Item Clickable ?

Postby freshnet » Wed Jun 27, 2012 6:37 am

Are you thinking of the 'label' tag?

http://www.w3schools.com/tags/tag_label.asp


Return to “HTML Basics”

Who is online

Users browsing this forum: No registered users and 1 guest