137
rated 0 times
[
140]
[
3]
/ answers: 1 / hits: 68993
/ 11 Years ago, mon, august 12, 2013, 12:00:00
how can i get the Value / Text of a <li>
item ?
I found on the internet much ways to get the value for a dropdown list.
But not for a <li>
item.
This is what I have tried so far:
var listt = document.getElementById('content1');
var selectedvalue = [listt.selectedIndex].text;
More From » list