Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML HTML Basics

How can I make an Entire List Item Clickable ?

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

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
ifuturzcom
New php-forum User
New php-forum User
 
Posts: 7
Joined: Mon Mar 26, 2012 1:27 am

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
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 freshnet » Wed Jun 27, 2012 6:37 am

Are you thinking of the 'label' tag?

http://www.w3schools.com/tags/tag_label.asp
User avatar
freshnet
php-forum Active User
php-forum Active User
 
Posts: 278
Joined: Tue Feb 22, 2011 8:19 am
Location: Canada


Return to HTML Basics

Who is online

Users browsing this forum: No registered users and 0 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron