![]() |
Get li attribute using javascript or jquery.
Hi,
I want to get url attribute of li when user click on li. Code:
<ul>Code:
$('li').click(function() {- Thanks Zohaib. |
This topic is solved. following is the solution.
http://tech.avivo.si/tag/jquery-get-attribute-value/ |
By the way: There is no
url attribute for the li element in any current version of HTML. And also, IDs must not start with a number. They have to begin with any letter a-z or A-Z. |
| All times are GMT +1. The time now is 10:20 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.