How can I make an Entire List Item Clickable ?

Discussing Html . Code , Software , other

Moderators: egami, macek, gesf

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

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: 979
Joined: Thu Feb 17, 2011 6:52 am
Location: Racine, WI

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: 359
Joined: Tue Feb 22, 2011 8:19 am
Location: Canada

Wed Jun 27, 2012 6:37 am

Are you thinking of the 'label' tag?

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

Post Reply